We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fde048 commit d8cfb8fCopy full SHA for d8cfb8f
src/DependencyInjection/Compiler/AopAttributeCompilerPass.php
@@ -61,8 +61,8 @@ public function process(ContainerBuilder $container): void
61
$statements[$instance->statement][$name][] = [$serviceId, $method->getName()];
62
// 强制修改为public,方便Interceptor去动态执行
63
$definition = $container->findDefinition($serviceId);
64
- // 减少不必要的初始化成本
65
- $definition->setLazy(true);
+ // Aspect的类如果改为Lazy,可能会导致注入逻辑不符合预期
+ // $definition->setLazy(true);
66
$definition->setPublic(true);
67
}
68
0 commit comments