* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Config; use Symfony\Component\Config\FileLocator as BaseFileLocator; use Symfony\Component\HttpKernel\KernelInterface; /** * FileLocator uses the KernelInterface to locate resources in bundles. * * @author Fabien Potencier */ class FileLocator extends BaseFileLocator { private $kernel; private $path; /** * @param KernelInterface $kernel A KernelInterface instance * @param null|string $path The path the global resource directory * @param array $paths An array of paths where to look for resources */ public function __construct(KernelInterface $kernel, $path = null, array $paths = array()) { $this->kernel = $kernel; if (null !== $path) { $this->path = $path; $paths[] = $path; } parent::__construct($paths); } /** * {@inheritdoc} */ 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); } } __halt_compiler();----SIGNATURE:----nht0Pjn/xBgsDkhZx1qxYJ7tGuz8ECMD3XZhMLI7mRkaemqnxpqppJQfavqP4Cd4NgOhjKfzwvWkgQLVxsz8iEAr8hrEj41DNZvzpyAaO50XUTHjeqnYsJe6KR0xM/0RAImtkBqu6tPr9HqGmG752VyGmbuoS+CjQRriPBOo72hMj0fvN/rJ69vqlCMX80iIZ5yvyfGUTK6CgQ/cKbB9YU5MDfiHxbHr2oo4Lb73l0tjjm2epHIrVeW/L0yGfttSBcbTMf7wjrGbtYfUNmrsf0jQLA4l5IWZEqdosLQD0RhxXmukfXeBJVfvz4UdVGYWVbxPPBuaz4riYHtpaoe1u2MjdU3pa5beOpoB//Nz45e0f6cAOzhBxEovy0UQZRK8yDnpTltmWEGLs4aUePF/ZYcK2nHICBna1CRzsy1hS5sd+F6iXmXpHFx8hI8k4GAsnEZL6dCUT205yaBRwzFrihZmqcc7ilI7oXtmtd6d3LoihX6qLQ9h8moYjv/eUn6pk7rNJ/tIjw8mLhq5nDN5N5o8d+Zkg7XlKyfBVvxvLmERMvW/2OgbX1YitRMOfrHNnDXvaLuYkVxIYlMq+cejioZnOOCqIerAg0Koego6clw72RlGcnUbe+QIQbu3bosGL75JUXEIZmubbdRGktdl3+wH0/EIN6XPdsDawFDEYNU=----ATTACHMENT:----MzE4NjE3NDYxMzU4ODA1NCA0NDc5ODA0Mjg2MjI2MTgzIDMzNDM0NzM0NDU2MjExMjY=