original_string: public function setInstance(Container $app)
      {
          $app->instance('app', $app);
          $app->instance(Container::class, $app);
  
          if ($this->framework === 'lumen') {
              $app->instance(LumenApplication::class, $app);
          }
  
          Container::setInstance($app);
          Context::setApp($app);
          Facade::clearResolvedInstances();
          Facade::setFacadeApplication($app);
      }
code: public function setInstance(Container $app)
      {
          $app->instance('app', $app);
          $app->instance(Container::class, $app);
  
          if ($this->framework === 'lumen') {
              $app->instance(LumenApplication::class, $app);
          }
  
          Container::setInstance($app);
          Context::setApp($app);
          Facade::clearResolvedInstances();
          Facade::setFacadeApplication($app);
      }
code_tokens: public function setInstance ( Container $ app ) { $ app -> instance ( 'app' , $ app ) ; $ app -> instance ( Container :: class , $ app ) ; if ( $ this -> framework === 'lumen' ) { $ app -> instance ( LumenApplication :: class , $ app ) ; } Container :: setInstance ( $ app ) ; Context :: setApp ( $ app ) ; Facade :: clearResolvedInstances ( ) ; Facade :: setFacadeApplication ( $ app ) ; }
docstring: Replace app's self bindings.
  
  @param \Illuminate\Container\Container $app
docstring_tokens: Replace app s self bindings .