AppserverIo\Appserver\MessageQueue\QueueWorker::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()
    {
        // register the default autoloader
        require SERVER_AUTOLOADER;
        // synchronize the application instance and register the class loaders
        $application = $this->application;
        $application->registerClassLoaders();
        // try to load the profile logger
        if ($this->profileLogger = $application->getInitialContext()->getLogger(LoggerUtils::PROFILE)) {
            $this->profileLogger->appendThreadContext(sprintf('queue-worker-%s', $this->priorityKey));
        }
    }