protected __construct ( AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory, AppserverIo\Storage\GenericStackable $runlevels ) | ||
$namingDirectory | AppserverIo\Psr\Naming\NamingDirectoryInterface | |
$runlevels | AppserverIo\Storage\GenericStackable | The storage for the services |
protected function __construct(NamingDirectoryInterface $namingDirectory, GenericStackable $runlevels)
{
// set the services and the naming directory
$this->runlevels = $runlevels;
$this->namingDirectory = $namingDirectory;
// initialize the default runlevel
$this->runlevel = ApplicationServerInterface::ADMINISTRATION;
// set to TRUE, because we switch to runlevel 1 immediately
$this->locked = false;
// initialize command/params
$this->command = null;
$this->params = null;
}