src/View/TwigView.php
public function initialize(): void
    {
        $this->twig = new Environment($this->getLoader(), $this->resolveConfig());

        $this->getEventManager()->dispatch(ConstructEvent::create($this, $this->twig));

        $this->_ext = self::EXT;

        parent::initialize();
    }
public function initialize(): void
    {
        $this->twig = new Environment($this->getLoader(), $this->resolveConfig());

        $this->getEventManager()->dispatch(ConstructEvent::create($this, $this->twig));

        $this->_ext = self::EXT;

        parent::initialize();
    }
public function initialize ( ) : void { $ this -> twig = new Environment ( $ this -> getLoader ( ) , $ this -> resolveConfig ( ) ) ; $ this -> getEventManager ( ) -> dispatch ( ConstructEvent :: create ( $ this , $ this -> twig ) ) ; $ this -> _ext = self :: EXT ; parent :: initialize ( ) ; }
Initialize view.
Initialize view .