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);
	}