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