public function getParser()
    {
        if ($this->parser == null) {
            $this->parser = $this->container->get('thelia.parser');

            // Define the current back-office template that should be used
            $this->parser->setTemplateDefinition(
                $this->parser->getTemplateHelper()->getActiveAdminTemplate()
            );
        }

        return $this->parser;
    }
public function getParser()
    {
        if ($this->parser == null) {
            $this->parser = $this->container->get('thelia.parser');

            // Define the current back-office template that should be used
            $this->parser->setTemplateDefinition(
                $this->parser->getTemplateHelper()->getActiveAdminTemplate()
            );
        }

        return $this->parser;
    }
public function getParser ( ) { if ( $ this -> parser == null ) { $ this -> parser = $ this -> container -> get ( 'thelia.parser' ) ; // Define the current back-office template that should be used $ this -> parser -> setTemplateDefinition ( $ this -> parser -> getTemplateHelper ( ) -> getActiveAdminTemplate ( ) ) ; } return $ this -> parser ; }
Return platform Parser

@return ParserInterface
Return platform Parser