AppserverIo\Appserver\Core\Consoles\Telnet::__construct PHP Method

__construct() public method

Initialize and start the management console.
public __construct ( AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface $applicationServer, AppserverIo\Appserver\Core\Api\Node\ConsoleNodeInterface $consoleNode ) : void
$applicationServer AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface The reference to the server
$consoleNode AppserverIo\Appserver\Core\Api\Node\ConsoleNodeInterface The console configuration
return void
    public function __construct(ApplicationServerInterface $applicationServer, ConsoleNodeInterface $consoleNode)
    {
        $this->applicationServer = $applicationServer;
        $this->consoleNode = $consoleNode;
        $this->start(PTHREADS_INHERIT_ALL);
    }