-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for server standalone creation (#14)
* Added support for server standalone creation * QA fix * Added class alias for older nette support * Updating GH action configuration
- Loading branch information
Showing
10 changed files
with
133 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
/** | ||
* StartEvent.php | ||
* | ||
* @copyright More in LICENSE.md | ||
* @license https://www.ipublikuj.eu | ||
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu> | ||
* @package iPublikuj:WebSockets! | ||
* @subpackage Events | ||
* @since 1.0.0 | ||
* | ||
* @date 15.11.19 | ||
*/ | ||
|
||
namespace IPub\WebSockets\Events\Server; | ||
|
||
use IPub\WebSockets\Server; | ||
use Symfony\Contracts\EventDispatcher; | ||
|
||
/** | ||
* Server start event | ||
* | ||
* @package iPublikuj:WebSockets! | ||
* @subpackage Events | ||
* | ||
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu> | ||
*/ | ||
final class CreateEvent extends EventDispatcher\Event | ||
{ | ||
|
||
/** @var Server\Server */ | ||
private $server; | ||
|
||
/** | ||
* @param Server\Server $server | ||
*/ | ||
public function __construct( | ||
Server\Server $server | ||
) { | ||
$this->server = $server; | ||
} | ||
|
||
/** | ||
* @return Server\Server | ||
*/ | ||
public function getServer(): Server\Server | ||
{ | ||
return $this->server; | ||
} | ||
|
||
} |
Oops, something went wrong.