src/Listener/ApiListener.php
public function injectViewClasses()
    {
        $controller = $this->_controller();
        foreach ($this->getConfig('viewClasses') as $type => $class) {
            $controller->RequestHandler->setConfig('viewClassMap', [$type => $class]);
        }
    }
public function injectViewClasses()
    {
        $controller = $this->_controller();
        foreach ($this->getConfig('viewClasses') as $type => $class) {
            $controller->RequestHandler->setConfig('viewClassMap', [$type => $class]);
        }
    }
public function injectViewClasses ( ) { $ controller = $ this -> _controller ( ) ; foreach ( $ this -> getConfig ( 'viewClasses' ) as $ type => $ class ) { $ controller -> RequestHandler -> setConfig ( 'viewClassMap' , [ $ type => $ class ] ) ; } }
Inject view classes into RequestHandler

@return void
Inject view classes into RequestHandler