public function FileLocator::__construct

Constructor.

Parameters

KernelInterface $kernel A KernelInterface instance:

null|string $path The path the global resource directory:

array $paths An array of paths where to look for resources:

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Config/FileLocator.php, line 34

Class

FileLocator
FileLocator uses the KernelInterface to locate resources in bundles.

Namespace

Symfony\Component\HttpKernel\Config

Code

public function __construct(KernelInterface $kernel, $path = null, array $paths = array()) {
  $this->kernel = $kernel;
  if (null !== $path) {
    $this->path = $path;
    $paths[] = $path;
  }
  parent::__construct($paths);
}