Add getTwig controller method
This commit is contained in:
parent
f1849c2ea0
commit
55c0ba8934
|
|
@ -264,6 +264,16 @@ class Controller extends BaseController
|
|||
$this->twig->addExtension(new SystemTwigExtension);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Twig environment.
|
||||
*
|
||||
* @return Twig_Environment
|
||||
*/
|
||||
public function getTwig()
|
||||
{
|
||||
return $this->twig;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the custom layout and page objects.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue