Skip to content

setting templating to false generates chain loader fo twig which makes no sense #20665

Closed
@mvrhov

Description

@mvrhov

If one sets the templating to false, the code generated for twig.loader makes no sense. I've checked the 3.1 and 3.2, don't know for others.

    protected function getTwig_LoaderService()
    {
        $a = new \Twig_Loader_Filesystem(array(), $this->targetDirs[4]);
        $a->addPath(....);

        $this->services['twig.loader'] = $instance = new \Twig_Loader_Chain();

        $instance->addLoader($a);
        $instance->addLoader($a);

        return $instance;
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions