diff --git a/system/engine/registry.php b/system/engine/registry.php index c61de17..ab25eb9 100644 --- a/system/engine/registry.php +++ b/system/engine/registry.php @@ -345,7 +345,7 @@ final class Registry { if ($injectionClass === self::FACTORY_CLASS) { $declaringClass = $param->__toString(); - $pattern = '/<[^>]+>\s*([^$\s]+)/'; + $pattern = '/\[.*?>\s*([^$\s]+)/';//$pattern = '/<[^>]+>\s*([^$\s]+)/'; if (preg_match($pattern, $declaringClass, $matches)) { $classFactoryName = $matches[1];