改名
This commit is contained in:
@@ -4,15 +4,6 @@
|
|||||||
namespace Annotation;
|
namespace Annotation;
|
||||||
|
|
||||||
|
|
||||||
use Annotation\Route\After;
|
|
||||||
use Annotation\Route\Interceptor;
|
|
||||||
use Annotation\Route\Limits;
|
|
||||||
use Annotation\Route\Middleware as RMiddleware;
|
|
||||||
use HttpServer\Route\Node;
|
|
||||||
use ReflectionException;
|
|
||||||
use Snowflake\Exception\ComponentException;
|
|
||||||
use Snowflake\Exception\NotFindClassException;
|
|
||||||
use Snowflake\Snowflake;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Attribute
|
* Class Attribute
|
||||||
@@ -22,7 +13,11 @@ abstract class Attribute implements IAnnotation
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param mixed $class
|
||||||
|
* @param mixed|string $method
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
public function execute(mixed $class, mixed $method = ''): mixed
|
public function execute(mixed $class, mixed $method = ''): mixed
|
||||||
{
|
{
|
||||||
// TODO: Implement execute() method.
|
// TODO: Implement execute() method.
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ class OnServerWorker extends \Server\Abstracts\Server
|
|||||||
$di = Snowflake::getDi();
|
$di = Snowflake::getDi();
|
||||||
foreach ($fileLists as $class) {
|
foreach ($fileLists as $class) {
|
||||||
$instance = $di->get($class);
|
$instance = $di->get($class);
|
||||||
|
foreach ($di->getTargetNote($class) as $value) {
|
||||||
|
$value->execute($instance);
|
||||||
|
}
|
||||||
$methods = $di->getMethodAttribute($class);
|
$methods = $di->getMethodAttribute($class);
|
||||||
foreach ($methods as $method => $attribute) {
|
foreach ($methods as $method => $attribute) {
|
||||||
if (empty($attribute)) {
|
if (empty($attribute)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user