AppserverIo\Appserver\Core\Commands\QuitCommand::__construct PHP Method

__construct() public method

Initializes the command with the connection and the application server instance to execute the command on.
public __construct ( React\Socket\ConnectionInterface $connection, AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface $applicationServer )
$connection React\Socket\ConnectionInterface The connection instance
$applicationServer AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface The application server instance
    public function __construct(ConnectionInterface $connection, ApplicationServerInterface $applicationServer)
    {
        $this->connection = $connection;
        $this->applicationServer = $applicationServer;
    }