You are here

public function FileLocator::locate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Config/FileLocator.php \Symfony\Component\HttpKernel\Config\FileLocator::locate()

File

vendor/symfony/http-kernel/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 (isset($file[0]) && '@' === $file[0]) {
    return $this->kernel
      ->locateResource($file, $this->path, $first);
  }
  return parent::locate($file, $currentPath, $first);
}