mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
fix unhandled exception
This commit is contained in:
@@ -334,7 +334,7 @@ class WorkerContainer implements ContainerInterface
|
|||||||
try {
|
try {
|
||||||
$reflection = new ReflectionClass($concrete);
|
$reflection = new ReflectionClass($concrete);
|
||||||
} catch (ReflectionException $e) {
|
} catch (ReflectionException $e) {
|
||||||
throw new EntryResolutionException("指定的类 {$concrete} 不存在");
|
throw new EntryResolutionException("指定的类 {$concrete} 不存在", 0, $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$reflection->isInstantiable()) {
|
if (!$reflection->isInstantiable()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user