modify plugin name
This commit is contained in:
+3
-3
@@ -240,11 +240,11 @@ if (!function_exists('injectRuntime')) {
|
|||||||
function injectRuntime(string $path, array $exclude = [])
|
function injectRuntime(string $path, array $exclude = [])
|
||||||
{
|
{
|
||||||
$fileLists = Kiri::getAnnotation()->runtime($path, $exclude);
|
$fileLists = Kiri::getAnnotation()->runtime($path, $exclude);
|
||||||
$di = Kiri::getDi();
|
|
||||||
|
|
||||||
$router = [];
|
$router = [];
|
||||||
foreach ($fileLists as $class) {
|
foreach ($fileLists as $class) {
|
||||||
$targetAttributes = TargetManager::get($class)->getAttributes();
|
$target = TargetManager::get($class);
|
||||||
|
$targetAttributes = $target->getAttributes();
|
||||||
foreach ($targetAttributes as $value) {
|
foreach ($targetAttributes as $value) {
|
||||||
$value = $value->newInstance();
|
$value = $value->newInstance();
|
||||||
if (!method_exists($value, 'execute')) {
|
if (!method_exists($value, 'execute')) {
|
||||||
@@ -253,7 +253,7 @@ if (!function_exists('injectRuntime')) {
|
|||||||
$value->execute($class);
|
$value->execute($class);
|
||||||
}
|
}
|
||||||
|
|
||||||
$methods = TargetManager::get($class)->getMethodsAttribute();
|
$methods = $target->getMethodsAttribute();
|
||||||
foreach ($methods as $method => $attribute) {
|
foreach ($methods as $method => $attribute) {
|
||||||
if (empty($attribute)) {
|
if (empty($attribute)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user