Backend\Core\Engine\TwigTemplate::__construct PHP Method

__construct() public method

The constructor will store the instance in the reference, preset some settings and map the custom modifiers.
public __construct ( boolean $addToReference = true )
$addToReference boolean Should the instance be added into the reference.
    public function __construct($addToReference = true)
    {
        if ($addToReference) {
            Model::getContainer()->set('template', $this);
        }
        $this->forkSettings = Model::get('fork.settings');
        $this->debugMode = Model::getContainer()->getParameter('kernel.debug');
        $this->language = BL::getWorkingLanguage();
    }