This commit is contained in:
as2252258@163.com
2021-02-28 17:34:55 +08:00
parent f4d315c84e
commit c96936fb4e
2 changed files with 16 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace Annotation;
/**
* Class Target
* @package Annotation
*/
#[\Attribute(\Attribute::TARGET_CLASS)] class Target
{
}
+2 -1
View File
@@ -3,7 +3,7 @@ declare(strict_types=1);
namespace HttpServer\Events;
use co;
use Annotation\Target;
use Exception;
use HttpServer\Abstracts\Callback;
use Snowflake\Abstracts\Config;
@@ -18,6 +18,7 @@ use Swoole\Server;
* Class OnWorkerStart
* @package HttpServer\Events
*/
#[Target]
class OnWorkerStart extends Callback
{