src/Compiler.php
private function buildSimpleDirective($key, $value)
    {
        $known = $this->parser->getServer()->getKnownDirectives();
        if (in_array($key, array_keys($known))) {
            if (isset($known[$key]['class'])) {
                $class = 'WebHelper\Parser\Directive\\'.$known[$key]['class'];
                return new $class($key, $value, $this->parser);
            }
        }

        return new SimpleDirective($key, $value);
    }
private function buildSimpleDirective($key, $value)
    {
        $known = $this->parser->getServer()->getKnownDirectives();
        if (in_array($key, array_keys($known))) {
            if (isset($known[$key]['class'])) {
                $class = 'WebHelper\Parser\Directive\\'.$known[$key]['class'];
                return new $class($key, $value, $this->parser);
            }
        }

        return new SimpleDirective($key, $value);
    }
private function buildSimpleDirective ( $ key , $ value ) { $ known = $ this -> parser -> getServer ( ) -> getKnownDirectives ( ) ; if ( in_array ( $ key , array_keys ( $ known ) ) ) { if ( isset ( $ known [ $ key ] [ 'class' ] ) ) { $ class = 'WebHelper\Parser\Directive\\' . $ known [ $ key ] [ 'class' ] ; return new $ class ( $ key , $ value , $ this -> parser ) ; } } return new SimpleDirective ( $ key , $ value ) ; }
Build a SimpleDirective or an InclusionDirective.

Remember that inclusion are parsed as simple directives but are block directives

@see Directive\InclusionDirective Inclusion Doc

@param string $key   a directive's name
@param string $value a directive's value

@return Directive\SimpleDirective|Directive\InclusionDirective the Directive
Build a SimpleDirective or an InclusionDirective .