public function run()
    {
        $this->make('Sun\Bootstrap\Provider')->registerRoute();

        $this->route->register();

        $httpMethod = $this->make('Sun\Contracts\Http\Request')->method();

        $uri = $this->make('Sun\Contracts\Routing\UrlGenerator')->getUri();

        $data = $this->route->dispatch($httpMethod, $uri);

        $this->make('Sun\Bootstrap\Provider')->dispatch();

        $this->make('Sun\Contracts\Http\Response')->html($data);
    }
public function run()
    {
        $this->make('Sun\Bootstrap\Provider')->registerRoute();

        $this->route->register();

        $httpMethod = $this->make('Sun\Contracts\Http\Request')->method();

        $uri = $this->make('Sun\Contracts\Routing\UrlGenerator')->getUri();

        $data = $this->route->dispatch($httpMethod, $uri);

        $this->make('Sun\Bootstrap\Provider')->dispatch();

        $this->make('Sun\Contracts\Http\Response')->html($data);
    }
public function run ( ) { $ this -> make ( 'Sun\Bootstrap\Provider' ) -> registerRoute ( ) ; $ this -> route -> register ( ) ; $ httpMethod = $ this -> make ( 'Sun\Contracts\Http\Request' ) -> method ( ) ; $ uri = $ this -> make ( 'Sun\Contracts\Routing\UrlGenerator' ) -> getUri ( ) ; $ data = $ this -> route -> dispatch ( $ httpMethod , $ uri ) ; $ this -> make ( 'Sun\Bootstrap\Provider' ) -> dispatch ( ) ; $ this -> make ( 'Sun\Contracts\Http\Response' ) -> html ( $ data ) ; }
To run application
To run application