public function AnnotationFileLoader::__construct

Constructor.

Parameters

FileLocatorInterface $locator A FileLocator instance:

AnnotationClassLoader $loader An AnnotationClassLoader instance:

string|array $paths A path or an array of paths where to look for resources:

Throws

\RuntimeException

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Loader/AnnotationFileLoader.php, line 38

Class

AnnotationFileLoader
AnnotationFileLoader loads routing information from annotations set on a PHP class and its methods.

Namespace

Symfony\Component\Routing\Loader

Code

public function __construct(FileLocatorInterface $locator, AnnotationClassLoader $loader, $paths = array()) {
  if (!function_exists('token_get_all')) {
    throw new \RuntimeException('The Tokenizer extension is required for the routing annotation loaders.');
  }
  parent::__construct($locator, $paths);
  $this->loader = $loader;
}