src/View/TwigView.php
protected function getLoader(): Loader
    {
        $event = LoaderEvent::create(new Loader());
        $this->getEventManager()->dispatch($event);

        return $event->getResultLoader();
    }
protected function getLoader(): Loader
    {
        $event = LoaderEvent::create(new Loader());
        $this->getEventManager()->dispatch($event);

        return $event->getResultLoader();
    }
protected function getLoader ( ) : Loader { $ event = LoaderEvent :: create ( new Loader ( ) ) ; $ this -> getEventManager ( ) -> dispatch ( $ event ) ; return $ event -> getResultLoader ( ) ; }
Create the template loader.

@return \WyriHaximus\TwigView\Lib\Twig\Loader
Create the template loader .