original_string: 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);
          });
      }
code: 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);
          });
      }
code_tokens: 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 ) ; } ) ; }
docstring: Register Api.
  
  @return void
docstring_tokens: Register Api .