Lines Matching refs:loader
52 protected $loader; variable in Twig\\Environment
123 public function __construct(LoaderInterface $loader = null, $options = []) argument
125 if (null !== $loader) {
126 $this->setLoader($loader);
475 $loader = $this->getLoader();
476 if (!$loader instanceof SourceContextLoaderInterface) {
477 $source = new Source($loader->getSource($name), $name);
479 $source = $loader->getSourceContext($name);
544 $loader = new ChainLoader([
549 $this->setLoader($loader);
811 public function setLoader(LoaderInterface $loader) argument
813 …if (!$loader instanceof SourceContextLoaderInterface && 0 !== strpos(\get_class($loader), 'Mock_')…
814 …ig\Loader\SourceContextLoaderInterface since version 1.27.', \get_class($loader)), E_USER_DEPRECAT…
817 $this->loader = $loader;
827 if (null === $this->loader) {
831 return $this->loader;
907 public function addRuntimeLoader(RuntimeLoaderInterface $loader) argument
909 $this->runtimeLoaders[] = $loader;
958 foreach ($this->runtimeLoaders as $loader) {
959 if (null !== $runtime = $loader->load($class)) {