src/ViewManager.php
public function registerParser($extension, Parser $parser)
	{
		if ($parser instanceof ViewManagerAware)
		{
			$parser->setViewManager($this);
		}

		$this->parsers[$extension] = $parser;
	}
public function registerParser($extension, Parser $parser)
	{
		if ($parser instanceof ViewManagerAware)
		{
			$parser->setViewManager($this);
		}

		$this->parsers[$extension] = $parser;
	}
public function registerParser ( $ extension , Parser $ parser ) { if ( $ parser instanceof ViewManagerAware ) { $ parser -> setViewManager ( $ this ) ; } $ this -> parsers [ $ extension ] = $ parser ; }
Registers a new parser for rendering a given file type

@param string $extension
@param Parser $parser
Registers a new parser for rendering a given file type