system/Config/Services.php
public static function filters($config = null, bool $getShared = true)
	{
		if ($getShared)
		{
			return static::getSharedInstance('filters', $config);
		}

		if (empty($config))
		{
			$config = new \Config\Filters();
		}

		return new Filters($config, static::request(), static::response());
	}
public static function filters($config = null, bool $getShared = true)
	{
		if ($getShared)
		{
			return static::getSharedInstance('filters', $config);
		}

		if (empty($config))
		{
			$config = new \Config\Filters();
		}

		return new Filters($config, static::request(), static::response());
	}
Filters allow you to run tasks before and/or after a controller
is executed. During before filters, the request can be modified,
and actions taken based on the request, while after filters can
act on or modify the response itself before it is sent to the client.

@param mixed   $config
@param boolean $getShared

@return \CodeIgniter\Filters\Filters