* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Loader; use Symfony\Component\Config\Exception\FileLoaderLoadException; /** * Loader is the abstract class used by all built-in loaders. * * @author Fabien Potencier */ abstract class Loader implements LoaderInterface { protected $resolver; /** * {@inheritdoc} */ public function getResolver() { return $this->resolver; } /** * {@inheritdoc} */ public function setResolver(LoaderResolverInterface $resolver) { $this->resolver = $resolver; } /** * Imports a resource. * * @param mixed $resource A resource * @param string|null $type The resource type or null if unknown * * @return mixed */ public function import($resource, $type = null) { return $this->resolve($resource, $type)->load($resource, $type); } /** * Finds a loader able to load an imported resource. * * @param mixed $resource A resource * @param string|null $type The resource type or null if unknown * * @return $this|LoaderInterface * * @throws FileLoaderLoadException If no loader is found */ public function resolve($resource, $type = null) { if ($this->supports($resource, $type)) { return $this; } $loader = null === $this->resolver ? false : $this->resolver->resolve($resource, $type); if (false === $loader) { throw new FileLoaderLoadException($resource, null, null, null, $type); } return $loader; } } __halt_compiler();----SIGNATURE:----U+FfU27tv1I6H1v5EY4hcnCy37Ib2O6n5qywHY4+1nDNbOn4rxvwqve3TZnIA/O4R57pssMYoOfmD2CRpVco2SzFIGikA3FxwlBceaevFD9skaNCHrtSzjQtwCjRJ39mKYBXWfSMs3W+sG60rLROFKWQ+c9mVfg9de1zB3iX66XJ/YY7HHZ6PRJtSYdiS415Peq+4oDj/EEC5qHMAcKUfRM/DlkBtO8ueu6RsJFlKk6rBWXGRpmxQlrBYByUMkUBJXqs+zWSNd/8ZKtioziqU8DnhxdB4UiHNAO7PtT+ddjKDbEl0BKq7PVHBall87y2qw99lR15kJuNqmtMxni/12Uipt/Nnitta5ZihC+yjK2OW8/WIyyaxyX85S0NFTzi2v/tm3t1nm8bmhFPr2PdJTQtY4KaVrNIFdOKKqnylUBQ2TkH2bXWEuJZeMjc/VGTZ67pXRQ7glG8Rr7qJLl8fY/b88qWDfS52NhE1IYnMUtKULlh9zpM3LNnGsyr/W8zDMidLM27tBx6H/LUiNb7yNQeQ1Q1qBJu59CvxvgQDU/0Mt9+ch7/uZeZK4knOvMYLiAVS+0lis4WVaDbPAw4sjm4x/KkPrDiKVE4ebZRk5XRX0bjIeZdhZ1ywvaUM/Nt4LxFrC5ZjMJpPo+hnJhpIeJQD0zQEqVRbu9aWENwA08=----ATTACHMENT:----NjYwMzA4Nzk4NjExNTI4OSAyNjM1MDA3OTE3Njc4MjM0IDY1NzM3NTkyMTAxMzgwMTA=