Modules.php 1.3 KB

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