src/View/Twig/TwigLoader.php
/**
	 * Creates the twig environment instance.
	 */
Creates the twig environment instance.
Creates the twig environment instance .
protected function createTwigEnvironment() {
		$options = array(
			'cache' => $this->getCacheDirectory(),
			'auto_reload' => true
		);
		$environment = new Twig_Environment($this->loader, $options);
		$this->addExtensions($environment, (new TwigExtensionLoader($this->loader))->getExtensions());
		return $environment;
	}
protected function createTwigEnvironment ( ) { $ options = array ( 'cache' => $ this -> getCacheDirectory ( ) , 'auto_reload' => true ) ; $ environment = new Twig_Environment ( $ this -> loader , $ options ) ; $ this -> addExtensions ( $ environment , ( new TwigExtensionLoader ( $ this -> loader ) ) -> getExtensions ( ) ) ; return $ environment ; }
Creates the twig environment instance.
Creates the twig environment instance .
// An array to store environment options // Create the environment instance with the options // Add extensions