src/Parser/Twig.php
public function setupTwig()
	{
		$twigLoader = new TwigLoader($this->viewManager);
		$config = [];

		if ($this->viewManager->cachePath)
		{
			$config['cache'] = $this->viewManager->cachePath.'twig/';
		}

		$this->twig = new Twig_Environment($twigLoader, $config);
	}
public function setupTwig()
	{
		$twigLoader = new TwigLoader($this->viewManager);
		$config = [];

		if ($this->viewManager->cachePath)
		{
			$config['cache'] = $this->viewManager->cachePath.'twig/';
		}

		$this->twig = new Twig_Environment($twigLoader, $config);
	}
public function setupTwig ( ) { $ twigLoader = new TwigLoader ( $ this -> viewManager ) ; $ config = [ ] ; if ( $ this -> viewManager -> cachePath ) { $ config [ 'cache' ] = $ this -> viewManager -> cachePath . 'twig/' ; } $ this -> twig = new Twig_Environment ( $ twigLoader , $ config ) ; }
Sets the Twig Environment up
Sets the Twig Environment up