mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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…
x
Reference in New Issue
Block a user