protected function startTwig()
    {
        if ($this->isTwigStarted) {
            return;
        }

        $this->isTwigStarted = true;

        $markupManager = MarkupManager::instance();
        $markupManager->beginTransaction();
        $markupManager->registerTokenParsers([
            new MailPartialTokenParser
        ]);
    }
protected function startTwig()
    {
        if ($this->isTwigStarted) {
            return;
        }

        $this->isTwigStarted = true;

        $markupManager = MarkupManager::instance();
        $markupManager->beginTransaction();
        $markupManager->registerTokenParsers([
            new MailPartialTokenParser
        ]);
    }
protected function startTwig ( ) { if ( $ this -> isTwigStarted ) { return ; } $ this -> isTwigStarted = true ; $ markupManager = MarkupManager :: instance ( ) ; $ markupManager -> beginTransaction ( ) ; $ markupManager -> registerTokenParsers ( [ new MailPartialTokenParser ] ) ; }
Temporarily registers mail based token parsers with Twig.
@return void
Temporarily registers mail based token parsers with Twig .