public function FileLocator::__construct

Constructor.

Parameters

KernelInterface $kernel A KernelInterface instance:

string $path The path the global resource directory:

string|array $paths A path or 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;
  $this->path = $path;
  $paths[] = $path;
  parent::__construct($paths);
}