* * 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:----EbbhRKmB+p8knJ9ybmBuTrWZUt6bkIhYs2ukKzUiNisWRjrI+fJuLrW6guTJ/1ftFnjF0cPQynInjPpoxztPnfVrv1i0xJvtCE39OUPsTzM0GWVcKPYPMi7CM3ZSsUAXJCw6Io1tFk1JjwLezGg40ZVwcY2Ahiq5plIZJ2aSNj652O8WM348y35ac6RHip9f/HHIwt8uWx75mF1EAdRs28nY/GZdxS1Ruf2GLkrdml1R9hYbnnfrPa182JY5UeocJA4icnjc4cfwvCgDGLej9rxz2001qToY99Nyipw9NOlNTHb+b2p/ASEsRcMnk1kBjqlTCdlMMoUYFVom75LkobMoSr/xHjMagmR+6I+f+Fh68Muu5wo444e4Yot2SandPWdikKnTdjW5rX4dFjp7ZJOGPj70MCgTKYfVKrCKPHrCf2vqlWuRB26Qi6HKgrYttRB2iWkuWggTW7HjRsW/bVoOdi6csIYx/LRXghNpLrJJRLsCQEHCYJNl8KzHzwY8no/vq44+hON1VGEeQWGMszLlUMYB0DsAN5+k5HcfZFszX5FvybwhYEEFQchMW2uRpq3GUEL/o3EX6VhvZhaUfFsz6gelgsJJdUBUZzmouEq2BSfKAu7X1X2106OY5GAAQREgtsuh83YyaHkaPio9J2pSokiBtqhRZxF7HRqfTMk=----ATTACHMENT:----OTc4NjM5MTcxNTQxNjI0IDUwOTYyNzY1MDY0Mjk1MzkgNzc3ODA4NDA0NDM5NDc4Mg==