public function name(string $name, $parser): void
    {
        if (\is_string($parser) && (\class_exists($parser, false) || $this->app->bound($parser))) {
            $parser = $this->app->make($parser);
        }

        $this->parsers[$name] = $parser;
    }
public function name(string $name, $parser): void
    {
        if (\is_string($parser) && (\class_exists($parser, false) || $this->app->bound($parser))) {
            $parser = $this->app->make($parser);
        }

        $this->parsers[$name] = $parser;
    }
public function name ( string $ name , $ parser ) : void { if ( \ is_string ( $ parser ) && ( \ class_exists ( $ parser , false ) || $ this -> app -> bound ( $ parser ) ) ) { $ parser = $ this -> app -> make ( $ parser ) ; } $ this -> parsers [ $ name ] = $ parser ; }
Register a named parser.

@param  string  $name
@param  string|\Orchestra\Facile\Template\Parser  $parser

@return void
Register a named parser .