AppserverIo\Appserver\Core\AbstractContainerThread::__construct PHP Метод

__construct() публичный Метод

Initializes the container with the initial context, the unique container ID and the deployed applications.
public __construct ( AppserverIo\Appserver\Application\Interfaces\ContextInterface $initialContext, AppserverIo\Psr\Naming\NamingDirectoryInterface $namingDirectory, AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $runlevel )
$initialContext AppserverIo\Appserver\Application\Interfaces\ContextInterface The initial context
$namingDirectory AppserverIo\Psr\Naming\NamingDirectoryInterface The naming directory
$containerNode AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface The container node
$runlevel string The runlevel the container has been started in
    public function __construct(ContextInterface $initialContext, NamingDirectoryInterface $namingDirectory, ContainerNodeInterface $containerNode, $runlevel)
    {
        $this->initialContext = $initialContext;
        $this->namingDirectory = $namingDirectory;
        $this->containerNode = $containerNode;
        $this->runlevel = $runlevel;
        $this->containerState = ContainerStateKeys::get(ContainerStateKeys::WAITING_FOR_INITIALIZATION);
    }