original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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.
docstring_tokens: Create an instance of a filter .