src/BfwController.php
protected function runProcedural()
    {
        $routerLinker = $this->ctrlRouterInfos;
        
        $runFct = function() use ($routerLinker) {
            $controllerFile = (string) $routerLinker->target;
            
            if (!file_exists(CTRL_DIR.$controllerFile)) {
                throw new Exception(
                    'Controller file '.$controllerFile.' not found.',
                    self::ERR_RUN_PROCEDURAL_FILE_NOT_FOUND
                );
            }
            
            include(CTRL_DIR.$controllerFile);
        };
        
        $runFct();
    }
protected function runProcedural()
    {
        $routerLinker = $this->ctrlRouterInfos;
        
        $runFct = function() use ($routerLinker) {
            $controllerFile = (string) $routerLinker->target;
            
            if (!file_exists(CTRL_DIR.$controllerFile)) {
                throw new Exception(
                    'Controller file '.$controllerFile.' not found.',
                    self::ERR_RUN_PROCEDURAL_FILE_NOT_FOUND
                );
            }
            
            include(CTRL_DIR.$controllerFile);
        };
        
        $runFct();
    }
protected function runProcedural ( ) { $ routerLinker = $ this -> ctrlRouterInfos ; $ runFct = function ( ) use ( $ routerLinker ) { $ controllerFile = ( string ) $ routerLinker -> target ; if ( ! file_exists ( CTRL_DIR . $ controllerFile ) ) { throw new Exception ( 'Controller file ' . $ controllerFile . ' not found.' , self :: ERR_RUN_PROCEDURAL_FILE_NOT_FOUND ) ; } include ( CTRL_DIR . $ controllerFile ) ; } ; $ runFct ( ) ; }
Call controler when is a procedural file

@return void
Call controler when is a procedural file