You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Modules.php 1.6KB

2 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Modules\Modules as BaseModules;
  4. class Modules extends BaseModules
  5. {
  6. /**
  7. * --------------------------------------------------------------------------
  8. * Enable Auto-Discovery?
  9. * --------------------------------------------------------------------------
  10. *
  11. * If true, then auto-discovery will happen across all elements listed in
  12. * $aliases below. If false, no auto-discovery will happen at all,
  13. * giving a slight performance boost.
  14. *
  15. * @var bool
  16. */
  17. public $enabled = true;
  18. /**
  19. * --------------------------------------------------------------------------
  20. * Enable Auto-Discovery Within Composer Packages?
  21. * --------------------------------------------------------------------------
  22. *
  23. * If true, then auto-discovery will happen across all namespaces loaded
  24. * by Composer, as well as the namespaces configured locally.
  25. *
  26. * @var bool
  27. */
  28. public $discoverInComposer = true;
  29. /**
  30. * --------------------------------------------------------------------------
  31. * Auto-Discovery Rules
  32. * --------------------------------------------------------------------------
  33. *
  34. * Aliases list of all discovery classes that will be active and used during
  35. * the current application request.
  36. *
  37. * If it is not listed, only the base application elements will be used.
  38. *
  39. * @var string[]
  40. */
  41. public $aliases = [
  42. 'events',
  43. 'filters',
  44. 'registrars',
  45. 'routes',
  46. 'services',
  47. ];
  48. }