protected static function _createFilter($name, $options)
    {
        $className = App::className($name, 'Routing/Filter', 'Filter');
        if (!$className) {
            $msg = sprintf('Cannot locate dispatcher filter named "%s".', $name);
            throw new MissingDispatcherFilterException($msg);
        }

        return new $className($options);
    }
protected static function _createFilter($name, $options)
    {
        $className = App::className($name, 'Routing/Filter', 'Filter');
        if (!$className) {
            $msg = sprintf('Cannot locate dispatcher filter named "%s".', $name);
            throw new MissingDispatcherFilterException($msg);
        }

        return new $className($options);
    }
protected static function _createFilter ( $ name , $ options ) { $ className = App :: className ( $ name , 'Routing/Filter' , 'Filter' ) ; if ( ! $ className ) { $ msg = sprintf ( 'Cannot locate dispatcher filter named "%s".' , $ name ) ; throw new MissingDispatcherFilterException ( $ msg ) ; } return new $ className ( $ options ) ; }
Create an instance of a filter.

@param string $name The name of the filter to build.
@param array $options Constructor arguments/options for the filter.
@return \Cake\Routing\DispatcherFilter
@throws \Cake\Routing\Exception\MissingDispatcherFilterException When filters cannot be found.
Create an instance of a filter .