protected function parseTemplateDirectives(SimpleXMLElement $xml)
    {
        if (false === $baseParams = $xml->xpath('//config:templateDirectives/config:templateDirective')) {
            return;
        }
        try {
            $baseParamConfig = $this->container->getParameter("Thelia.parser.templateDirectives");
        } catch (ParameterNotFoundException $e) {
            $baseParamConfig = array();
        }

        foreach ($baseParams as $baseParam) {
            $baseParamConfig[$this->getAttributeAsPhp($baseParam, "name")] = $this->getAttributeAsPhp($baseParam, "class");
        }

        $this->container->setParameter("Thelia.parser.templateDirectives", $baseParamConfig);
    }
protected function parseTemplateDirectives(SimpleXMLElement $xml)
    {
        if (false === $baseParams = $xml->xpath('//config:templateDirectives/config:templateDirective')) {
            return;
        }
        try {
            $baseParamConfig = $this->container->getParameter("Thelia.parser.templateDirectives");
        } catch (ParameterNotFoundException $e) {
            $baseParamConfig = array();
        }

        foreach ($baseParams as $baseParam) {
            $baseParamConfig[$this->getAttributeAsPhp($baseParam, "name")] = $this->getAttributeAsPhp($baseParam, "class");
        }

        $this->container->setParameter("Thelia.parser.templateDirectives", $baseParamConfig);
    }
protected function parseTemplateDirectives ( SimpleXMLElement $ xml ) { if ( false === $ baseParams = $ xml -> xpath ( '//config:templateDirectives/config:templateDirective' ) ) { return ; } try { $ baseParamConfig = $ this -> container -> getParameter ( "Thelia.parser.templateDirectives" ) ; } catch ( ParameterNotFoundException $ e ) { $ baseParamConfig = array ( ) ; } foreach ( $ baseParams as $ baseParam ) { $ baseParamConfig [ $ this -> getAttributeAsPhp ( $ baseParam , "name" ) ] = $ this -> getAttributeAsPhp ( $ baseParam , "class" ) ; } $ this -> container -> setParameter ( "Thelia.parser.templateDirectives" , $ baseParamConfig ) ; }
parse BaseParams property

@param SimpleXMLElement $xml
parse BaseParams property