public function addNamespace($namespace, $location)
	{
		$loader = $this->twig->getLoader();

		$loader->addPath($location, $namespace);

		foreach ($loader->getPaths() as $path) {
			if (is_dir($dir = $path.'/'.$namespace)) {
				$loader->prependPath($dir, $namespace);
			}
		}
	}
public function addNamespace($namespace, $location)
	{
		$loader = $this->twig->getLoader();

		$loader->addPath($location, $namespace);

		foreach ($loader->getPaths() as $path) {
			if (is_dir($dir = $path.'/'.$namespace)) {
				$loader->prependPath($dir, $namespace);
			}
		}
	}
public function addNamespace ( $ namespace , $ location ) { $ loader = $ this -> twig -> getLoader ( ) ; $ loader -> addPath ( $ location , $ namespace ) ; foreach ( $ loader -> getPaths ( ) as $ path ) { if ( is_dir ( $ dir = $ path . '/' . $ namespace ) ) { $ loader -> prependPath ( $ dir , $ namespace ) ; } } }
Register a template namespace.

@param  string $namespace
@param  string $location

@return void
Register a template namespace .