modify
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace Annotation;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Target
|
||||||
|
* @package Annotation
|
||||||
|
*/
|
||||||
|
#[\Attribute(\Attribute::TARGET_CLASS)] class Target
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace HttpServer\Events;
|
namespace HttpServer\Events;
|
||||||
|
|
||||||
use co;
|
use Annotation\Target;
|
||||||
use Exception;
|
use Exception;
|
||||||
use HttpServer\Abstracts\Callback;
|
use HttpServer\Abstracts\Callback;
|
||||||
use Snowflake\Abstracts\Config;
|
use Snowflake\Abstracts\Config;
|
||||||
@@ -18,6 +18,7 @@ use Swoole\Server;
|
|||||||
* Class OnWorkerStart
|
* Class OnWorkerStart
|
||||||
* @package HttpServer\Events
|
* @package HttpServer\Events
|
||||||
*/
|
*/
|
||||||
|
#[Target]
|
||||||
class OnWorkerStart extends Callback
|
class OnWorkerStart extends Callback
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user