Feature.php 939 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. /**
  5. * Enable/disable backward compatibility breaking features.
  6. */
  7. class Feature extends BaseConfig
  8. {
  9. /**
  10. * Enable multiple filters for a route or not.
  11. *
  12. * If you enable this:
  13. * - CodeIgniter\CodeIgniter::handleRequest() uses:
  14. * - CodeIgniter\Filters\Filters::enableFilters(), instead of enableFilter()
  15. * - CodeIgniter\CodeIgniter::tryToRouteIt() uses:
  16. * - CodeIgniter\Router\Router::getFilters(), instead of getFilter()
  17. * - CodeIgniter\Router\Router::handle() uses:
  18. * - property $filtersInfo, instead of $filterInfo
  19. * - CodeIgniter\Router\RouteCollection::getFiltersForRoute(), instead of getFilterForRoute()
  20. */
  21. public bool $multipleFilters = false;
  22. /**
  23. * Use improved new auto routing instead of the default legacy version.
  24. */
  25. public bool $autoRoutesImproved = false;
  26. }