diff --git a/app/Config/Modules.php b/app/Config/Modules.php index 9e03fa491260..561a9f956115 100644 --- a/app/Config/Modules.php +++ b/app/Config/Modules.php @@ -74,7 +74,7 @@ class Modules extends BaseModules */ public $aliases = [ 'events', - 'filters', + 'filters', // @deprecated 4.4.2 Use Registrar instead. 'registrars', 'routes', 'services', diff --git a/docs/changelogs/v4.7.7.md b/docs/changelogs/v4.7.7.md index c9fed3f1b02a..dd35d1207644 100644 --- a/docs/changelogs/v4.7.7.md +++ b/docs/changelogs/v4.7.7.md @@ -18,6 +18,9 @@ Release Date: Unreleased ## Deprecations +- **Filters:** `CodeIgniter\Filters\Filters::$modules` and the `$modules` constructor parameter are now marked as deprecated since v4.4.2, to complete the deprecation of the auto-discovery of Filters. Only that feature uses them. +- **Modules:** The `filters` entry in `Config\Modules::$aliases` is likewise part of the Filters auto-discovery deprecated since v4.4.2, and is not needed once it is removed. + ## Bugs Fixed - **API:** Fixed HTTP 500 errors in `ResponseTrait::paginate()` when using a Query Builder with a very large page number or `$perPage = 0`. diff --git a/system/Filters/Filters.php b/system/Filters/Filters.php index 2a02ea7c08e2..a3632adaeb89 100644 --- a/system/Filters/Filters.php +++ b/system/Filters/Filters.php @@ -51,6 +51,8 @@ class Filters * The Config\Modules instance * * @var Modules + * + * @deprecated 4.4.2 Only used by the deprecated auto-discovery of Filters. */ protected $modules; @@ -144,6 +146,7 @@ class Filters * Constructor. * * @param FiltersConfig $config + * @param Modules|null $modules Deprecated. Only used by the deprecated auto-discovery of Filters. */ public function __construct($config, RequestInterface $request, ResponseInterface $response, ?Modules $modules = null) {