Feature.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. * Use improved new auto routing instead of the legacy version.
  11. */
  12. public bool $autoRoutesImproved = true;
  13. /**
  14. * Use filter execution order in 4.4 or before.
  15. */
  16. public bool $oldFilterOrder = false;
  17. /**
  18. * The behavior of `limit(0)` in Query Builder.
  19. *
  20. * If true, `limit(0)` returns all records. (the behavior of 4.4.x or before in version 4.x.)
  21. * If false, `limit(0)` returns no records. (the behavior of 3.1.9 or later in version 3.x.)
  22. */
  23. public bool $limitZeroAsAll = true;
  24. /**
  25. * Use strict location negotiation.
  26. *
  27. * By default, the locale is selected based on a loose comparison of the language code (ISO 639-1)
  28. * Enabling strict comparison will also consider the region code (ISO 3166-1 alpha-2).
  29. */
  30. public bool $strictLocaleNegotiation = false;
  31. }