* * 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:----as7tqrmS4WT8vXNLg77mSz02IKWDDhLAfIzjVZkj8n134tFmdwo/5AJsG/YhzRrs1BN2zWtVVwShYFPLk4/SkHPa2lW+QKl7QIo8kQ7WXjs2qMHjoWDp7oPsznsjBc+4VGRvSKpe8QAYmDRliFNjOcVoEv39yvRu7JXIZ25KO82yENJLw5AL/nVRtSycvl615Hxqmw3fP1R6lJ5S/IBHjAdEUvwGc4UQYeM+rGVTdEWDboeQ3+KnFp+OwTpDg8bLY/0fxwLXJNgg0BXVVU2SOSSZC5YMIwJRK3wkcQfAGdy/q4M2ffP30kROmBYUhK7IfnQbZxoDX2HQPp2mVzco8flXK2JvzH5QgFCrh1q/RdIcJhFTG01eJXna9+mhobde4NiLACE/z8eWvma7oolKiOu2PLMjjC0KD6T2euvR5Rx0H8GCrKcEBSS69KysXBpiXUntpp+DzLJOlOEaHAkbMO5nmVor0kgcmZfMAWsUkxB64K27ihGLI3NLrabgVRRxJ28p/i/a8nXx2lKNLLvvI8z+Xsaocvi3qzBhRcAKE2+KidpX4elMn7ZUGCbL20KXc/w65kuMpGyQMt/ZbW7vaIoUudt8uil58BkUnJOvoziXXoz2Nt16GuGhPACNhlUP0rchCGd/1IFAVSiD1w5iXLXViRzA05ZRga6qNensALU=----ATTACHMENT:----NzY0NDE1MTE0OTA5MzQ2MiA3NjY3MDk5NDYwMDMyNzIzIDc2MjMzNTk1MTQ0MTk3ODU=