public function run()
    {
        /** @var Request $request */
        $request = $this->getService('request-handler');

        //Process incoming request
        $request->incoming($this);

        //Register helper services
        $helpers = static::$container['helpers'];

        foreach($helpers as $helper => $options) {
            $this->registerService(new $helper($options));
        }

        //Start session
        $this->getService('session-handler')->start();

        //Execute callback
        if ($this->getService('router')->routeIsCallable()) {
            $this->executeCallback();
            return;
        }

        //Execute extenders
        $this->executeUnitExtenders($this->getActiveUnit());

        $this->executeService();
    }
public function run()
    {
        /** @var Request $request */
        $request = $this->getService('request-handler');

        //Process incoming request
        $request->incoming($this);

        //Register helper services
        $helpers = static::$container['helpers'];

        foreach($helpers as $helper => $options) {
            $this->registerService(new $helper($options));
        }

        //Start session
        $this->getService('session-handler')->start();

        //Execute callback
        if ($this->getService('router')->routeIsCallable()) {
            $this->executeCallback();
            return;
        }

        //Execute extenders
        $this->executeUnitExtenders($this->getActiveUnit());

        $this->executeService();
    }
public function run ( ) { /** @var Request $request */ $ request = $ this -> getService ( 'request-handler' ) ; //Process incoming request $ request -> incoming ( $ this ) ; //Register helper services $ helpers = static :: $ container [ 'helpers' ] ; foreach ( $ helpers as $ helper => $ options ) { $ this -> registerService ( new $ helper ( $ options ) ) ; } //Start session $ this -> getService ( 'session-handler' ) -> start ( ) ; //Execute callback if ( $ this -> getService ( 'router' ) -> routeIsCallable ( ) ) { $ this -> executeCallback ( ) ; return ; } //Execute extenders $ this -> executeUnitExtenders ( $ this -> getActiveUnit ( ) ) ; $ this -> executeService ( ) ; }
Run the application
- Incoming request will be handled
- Registration in the application will be done
- Session will be started
- Service will be executed

@return mixed
Run the application - Incoming request will be handled - Registration in the application will be done - Session will be started - Service will be executed