改名
This commit is contained in:
@@ -6,6 +6,7 @@ namespace Server\Abstracts;
|
||||
|
||||
use Closure;
|
||||
use Exception;
|
||||
use Snowflake\Event;
|
||||
use Snowflake\Snowflake;
|
||||
|
||||
|
||||
@@ -20,6 +21,19 @@ abstract class Server
|
||||
protected array $_events = [];
|
||||
|
||||
|
||||
protected Event $_event;
|
||||
|
||||
|
||||
/**
|
||||
* Server constructor.
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->_event = Snowflake::getApp('event');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param array|null $events
|
||||
|
||||
Reference in New Issue
Block a user