mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 12:17:48 +08:00
Fixed bug.
This commit is contained in:
parent
5f0d45ff23
commit
3f334d84d1
@ -94,7 +94,7 @@ class Scanner
|
||||
$cached = $this->deserializeCachedCollectors($collectors);
|
||||
if (! $cached) {
|
||||
foreach ($classes as $reflectionClass) {
|
||||
if (Str::contains($reflectionClass->getName(), $shouldCached)) {
|
||||
if (Str::startsWith($reflectionClass->getName(), $shouldCached)) {
|
||||
$this->collect($annotationReader, $reflectionClass);
|
||||
}
|
||||
}
|
||||
@ -112,7 +112,7 @@ class Scanner
|
||||
}
|
||||
|
||||
foreach ($classes as $reflectionClass) {
|
||||
if (Str::contains($reflectionClass->getName(), $shouldCached)) {
|
||||
if (Str::startsWith($reflectionClass->getName(), $shouldCached)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user