for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jasny\Controller\View;
use Jasny\Controller\View;
use Jasny\View\Twig as TwigView;
/**
* View using Twig
*/
trait Twig
{
use View;
* Get the template engine abstraction
*
* @return TwigView
public function getViewer()
if (!isset($this->viewer)) {
$this->viewer = $this->createTwigView(['path' => $this->getViewPath()]);
$this->viewer->addDefaultExtensions();
Jasny\View\Twig::addDefaultExtensions()
This method has been deprecated.
}
return $this->viewer;
* Create a twig view object.
* @ignore
* @codeCoverageIgnore
protected function createTwigView($options)
return new TwigView($options);
This method has been deprecated.