public function __construct($config, RequestInterface
$request, ResponseInterface
$response, ?Modules
$modules = null
) { $this->config =
$config;
$this->request = &
$request;
$this->
setResponse($response);
$this->modules =
$modules ??
config(Modules::
class);
if ($this->modules->
shouldDiscover('filters'
)) { $this->
discoverFilters();
} } /**
* If discoverFilters is enabled in Config then system will try to
* auto-discover custom filters files in Namespaces and allow access to
* the config object via the variable $filters as with the routes file
*
* Sample :
* $filters->aliases['custom-auth'] = \Acme\Blob\Filters\BlobAuth::class;
*/