mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
Fix exclude-annotation-path not working bug
This commit is contained in:
@@ -161,7 +161,7 @@ class OnWorkerStart implements SwooleEvent
|
|||||||
$exclude_annotations = array_merge($composer['extra']['exclude_annotate'] ?? [], $composer['extra']['zm']['exclude-annotation-path'] ?? []);
|
$exclude_annotations = array_merge($composer['extra']['exclude_annotate'] ?? [], $composer['extra']['zm']['exclude-annotation-path'] ?? []);
|
||||||
foreach ($merge as $k => $v) {
|
foreach ($merge as $k => $v) {
|
||||||
if (is_dir(DataProvider::getSourceRootDir() . '/' . $v)) {
|
if (is_dir(DataProvider::getSourceRootDir() . '/' . $v)) {
|
||||||
if (in_array(trim($k, '\\') . '\\', $exclude_annotations)) {
|
if (in_array($v, $exclude_annotations)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (trim($k, '\\') == 'ZM') {
|
if (trim($k, '\\') == 'ZM') {
|
||||||
|
|||||||
Reference in New Issue
Block a user