* * 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:----YInkvJ0H6GUOT/RCUxAOFhLrFkWGYMiMzJJpahyx6dcuAUz7zlbdZc4W9JcEiBbazFyJPkJgHUhEmjZgwWud/h2X9fieX3CUhfNJqh1XXbp4UOLGAHuUcsYaaXlQAg5dSZEoWI7oZ5aQlOCDfGx3Tm0wLdeM3i9MyISqE9dorMANQ4i5AUMdJ509acyQu7IG6ku3LFChcLZJLVgazC/i3aMOYw4yxrk6I+wjY5OJBS7XgSi5uaxqoqsW3wd/8TkbP5bZpNcyNNoZ7d+pDdLG19I/jQfORhWFNVWHY7aMKbfTtZwVjH/aMUJxPfJdlkaX7DzFHJ1BukpsVACRr3k+QsmAx1bMSslZMcsvjqdMNhO6ECNEtW6d3Kr1TqbjuwZrblCtuSAmtwXlTzcVbA0M8N2+j7JUswEP311Gt4UizXKLoK80smSMmOyR89a2bBRoXUzaixSTBrJvZzLQcg49iuWfJ9yOL24Fcyl5uzOLTG0D6DvtldVdvlZ49hd2koMxm6tyTPYzagrhX/OprW9CRahdhuNn1FHCWeAGNUA2BnloAQgLANsOF416v1hdIvtNrdEvEc9aCmbPgMPPoNtJ0US9tL2btA2BxHnOwiwE0GdZAnHqhNHinTL+B/YKE/lq56IR72o+LVws7gnXsBaQZupyFX2ZSIvXzPajJa4TFF8=----ATTACHMENT:----NzcxMjU2NDE0OTAzNTU0MyA1MDk1MjY2MTg5NjQ3NDAyIDExNDM5NDU3MjE3NTg0MDU=