AppserverIo\Appserver\PersistenceContainer\StandardGarbageCollector::bootstrap PHP Method

bootstrap() public method

This method will be invoked before the while() loop starts and can be used to implement some bootstrap functionality.
public bootstrap ( ) : void
return void
    public function bootstrap()
    {
        // setup autoloader
        require SERVER_AUTOLOADER;
        // enable garbage collection
        gc_enable();
        // synchronize the application instance and register the class loaders
        $application = $this->getApplication();
        $application->registerClassLoaders();
        // try to load the profile logger
        if ($this->profileLogger = $this->getApplication()->getInitialContext()->getLogger(LoggerUtils::PROFILE)) {
            $this->profileLogger->appendThreadContext('persistence-container-garbage-collector');
        }
    }