public function shutdown()
    {
        $this->callShutdownMethods($this->shutdownObjects);

        $securityContext = $this->get(Context::class);
        /** @var Context $securityContext */
        if ($securityContext->isInitialized()) {
            $this->get(Context::class)->withoutAuthorizationChecks(function () {
                $this->callShutdownMethods($this->internalShutdownObjects);
            });
        } else {
            $this->callShutdownMethods($this->internalShutdownObjects);
        }
    }
public function shutdown()
    {
        $this->callShutdownMethods($this->shutdownObjects);

        $securityContext = $this->get(Context::class);
        /** @var Context $securityContext */
        if ($securityContext->isInitialized()) {
            $this->get(Context::class)->withoutAuthorizationChecks(function () {
                $this->callShutdownMethods($this->internalShutdownObjects);
            });
        } else {
            $this->callShutdownMethods($this->internalShutdownObjects);
        }
    }
public function shutdown ( ) { $ this -> callShutdownMethods ( $ this -> shutdownObjects ) ; $ securityContext = $ this -> get ( Context :: class ) ; /** @var Context $securityContext */ if ( $ securityContext -> isInitialized ( ) ) { $ this -> get ( Context :: class ) -> withoutAuthorizationChecks ( function ( ) { $ this -> callShutdownMethods ( $ this -> internalShutdownObjects ) ; } ) ; } else { $ this -> callShutdownMethods ( $ this -> internalShutdownObjects ) ; } }
Shuts down this Object Container by calling the shutdown methods of all
object instances which were configured to be shut down.

@return void
Shuts down this Object Container by calling the shutdown methods of all object instances which were configured to be shut down .