original_string: protected function registerResponseFactory()
      {
          $this->app->singleton(ResponseFactoryContract::class, function ($app) {
              return new ResponseFactory($app[ViewFactoryContract::class], $app['redirect']);
          });
      }
code: protected function registerResponseFactory()
      {
          $this->app->singleton(ResponseFactoryContract::class, function ($app) {
              return new ResponseFactory($app[ViewFactoryContract::class], $app['redirect']);
          });
      }
code_tokens: protected function registerResponseFactory ( ) { $ this -> app -> singleton ( ResponseFactoryContract :: class , function ( $ app ) { return new ResponseFactory ( $ app [ ViewFactoryContract :: class ] , $ app [ 'redirect' ] ) ; } ) ; }
docstring: Register the response factory implementation.
  
  @return void
docstring_tokens: Register the response factory implementation .