library/Phalex/Events/Listener/Application.php
private function setViewService(Di $di, Config $config, $moduleName)
    {
        $viewsDir = $config['view'][$moduleName];
        $volt     = $this->setVoltOptions($config, $moduleName);

        $options = [
            'di'        => $di,
            'views_dir' => $viewsDir,
            'volt'      => $volt
        ];
        $di->set('view', new View($options), true);
        return $this;
    }
private function setViewService(Di $di, Config $config, $moduleName)
    {
        $viewsDir = $config['view'][$moduleName];
        $volt     = $this->setVoltOptions($config, $moduleName);

        $options = [
            'di'        => $di,
            'views_dir' => $viewsDir,
            'volt'      => $volt
        ];
        $di->set('view', new View($options), true);
        return $this;
    }
private function setViewService ( Di $ di , Config $ config , $ moduleName ) { $ viewsDir = $ config [ 'view' ] [ $ moduleName ] ; $ volt = $ this -> setVoltOptions ( $ config , $ moduleName ) ; $ options = [ 'di' => $ di , 'views_dir' => $ viewsDir , 'volt' => $ volt ] ; $ di -> set ( 'view' , new View ( $ options ) , true ) ; return $ this ; }
Set service view for application when module start
@param Di $di
@param Config $config
@param string $moduleName
@return \Phalex\Events\Listener\Application
Set service view for application when module start