function run()
    {
        // Load Modules Within Event Execution Wrapper that can handle errors
        // with failure callable of event
        $self = $this; $modules = $this->modules_enabled;
        $this->event()->then(function() use ($self, $modules) {
            $self->moduleManager()->loadModules($modules);
        });

        // each error during execution of sapi event listeners must handled within sapi
        // handle errors when modules loaded successfully!
        $this->event()
            ->onFailure(function($exception, $event) {
                /** @var $event EventHeapOfSapi */
                $this->_run_handleException($exception, $event);
                $event->shutdown();
            })
            ->trigger(EventHeapOfSapi::EVENT_APP_BOOTSTRAP)
            ->trigger(EventHeapOfSapi::EVENT_APP_MATCH_REQUEST)
            ->trigger(EventHeapOfSapi::EVENT_APP_DISPATCH)
            ->trigger(EventHeapOfSapi::EVENT_APP_RENDER)
            ->trigger(EventHeapOfSapi::EVENT_APP_FINISH)
        ;
    }
function run()
    {
        // Load Modules Within Event Execution Wrapper that can handle errors
        // with failure callable of event
        $self = $this; $modules = $this->modules_enabled;
        $this->event()->then(function() use ($self, $modules) {
            $self->moduleManager()->loadModules($modules);
        });

        // each error during execution of sapi event listeners must handled within sapi
        // handle errors when modules loaded successfully!
        $this->event()
            ->onFailure(function($exception, $event) {
                /** @var $event EventHeapOfSapi */
                $this->_run_handleException($exception, $event);
                $event->shutdown();
            })
            ->trigger(EventHeapOfSapi::EVENT_APP_BOOTSTRAP)
            ->trigger(EventHeapOfSapi::EVENT_APP_MATCH_REQUEST)
            ->trigger(EventHeapOfSapi::EVENT_APP_DISPATCH)
            ->trigger(EventHeapOfSapi::EVENT_APP_RENDER)
            ->trigger(EventHeapOfSapi::EVENT_APP_FINISH)
        ;
    }
function run ( ) { // Load Modules Within Event Execution Wrapper that can handle errors // with failure callable of event $ self = $ this ; $ modules = $ this -> modules_enabled ; $ this -> event ( ) -> then ( function ( ) use ( $ self , $ modules ) { $ self -> moduleManager ( ) -> loadModules ( $ modules ) ; } ) ; // each error during execution of sapi event listeners must handled within sapi // handle errors when modules loaded successfully! $ this -> event ( ) -> onFailure ( function ( $ exception , $ event ) { /** @var $event EventHeapOfSapi */ $ this -> _run_handleException ( $ exception , $ event ) ; $ event -> shutdown ( ) ; } ) -> trigger ( EventHeapOfSapi :: EVENT_APP_BOOTSTRAP ) -> trigger ( EventHeapOfSapi :: EVENT_APP_MATCH_REQUEST ) -> trigger ( EventHeapOfSapi :: EVENT_APP_DISPATCH ) -> trigger ( EventHeapOfSapi :: EVENT_APP_RENDER ) -> trigger ( EventHeapOfSapi :: EVENT_APP_FINISH ) ; }
Run Application And Send Response Output

@throws \Exception
@return void
Run Application And Send Response Output