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);
    }
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);
    }
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 ) ; }
Replace app's self bindings.

@param \Illuminate\Container\Container $app
Replace app s self bindings .