public function registerApi()
    {
        $this->app['api.request'] = $this->app->share(function($app)
        {
            $remoteClient = new Client();

            return new Api($app['config'], $app['router'], $app['request'], $remoteClient);
        });
    }
public function registerApi()
    {
        $this->app['api.request'] = $this->app->share(function($app)
        {
            $remoteClient = new Client();

            return new Api($app['config'], $app['router'], $app['request'], $remoteClient);
        });
    }
public function registerApi ( ) { $ this -> app [ 'api.request' ] = $ this -> app -> share ( function ( $ app ) { $ remoteClient = new Client ( ) ; return new Api ( $ app [ 'config' ] , $ app [ 'router' ] , $ app [ 'request' ] , $ remoteClient ) ; } ) ; }
Register Api.

@return void
Register Api .