AppserverIo\Appserver\Application\ManagerShutdownThread::run PHP Method

run() public method

Handles the clean manager shutdown.
public run ( ) : void
return void
    public function run()
    {
        // register the default autoloader
        require SERVER_AUTOLOADER;
        // create a local copy of the manager instance
        $manager = $this->manager;
        // query whether the manager has an application with class loaders to be registered
        if (method_exists($manager, 'getApplication') && ($application = $manager->getApplication())) {
            $application->registerClassLoaders();
        }
        // stop the manager if an apropriate method exists
        if (method_exists($manager, 'stop')) {
            $manager->stop();
        }
    }
ManagerShutdownThread