public function FileLocator::locate

File

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

Class

FileLocator
FileLocator uses the KernelInterface to locate resources in bundles.

Namespace

Symfony\Component\HttpKernel\Config

Code

public function locate($file, $currentPath = null, $first = true) {
  if ('@' === $file[0]) {
    return $this->kernel
      ->locateResource($file, $this->path, $first);
  }
  return parent::locate($file, $currentPath, $first);
}