File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 33
33
use Symfony \Component \HttpKernel \DependencyInjection \ControllerArgumentValueResolverPass ;
34
34
use Symfony \Component \HttpKernel \DependencyInjection \RegisterControllerArgumentLocatorsPass ;
35
35
use Symfony \Component \HttpKernel \DependencyInjection \RemoveEmptyControllerArgumentLocatorsPass ;
36
+ use Symfony \Component \HttpKernel \DependencyInjection \ResettableServicePass ;
36
37
use Symfony \Component \PropertyInfo \DependencyInjection \PropertyInfoPass ;
37
38
use Symfony \Component \Routing \DependencyInjection \RoutingResolverPass ;
38
39
use Symfony \Component \Serializer \DependencyInjection \SerializerPass ;
@@ -117,6 +118,7 @@ public function build(ContainerBuilder $container)
117
118
$ container ->addCompilerPass (new CachePoolPrunerPass (), PassConfig::TYPE_AFTER_REMOVING );
118
119
$ this ->addCompilerPassIfExists ($ container , FormPass::class);
119
120
$ container ->addCompilerPass (new WorkflowGuardListenerPass ());
121
+ $ container ->addCompilerPass (new ResettableServicePass ());
120
122
121
123
if ($ container ->getParameter ('kernel.debug ' )) {
122
124
$ container ->addCompilerPass (new AddDebugLogProcessorPass (), PassConfig::TYPE_BEFORE_OPTIMIZATION , -32 );
Original file line number Diff line number Diff line change 74
74
<service id =" Symfony\Component\Config\Resource\SelfCheckingResourceChecker" >
75
75
<tag name =" config_cache.resource_checker" priority =" -990" />
76
76
</service >
77
+
78
+ <service id =" Symfony\Component\HttpKernel\EventListener\ServiceResetListener" >
79
+ <argument /> <!-- ResettableServicePass will inject an iterator of initialized services here ($serviceId => $serviceInstance) -->
80
+ <argument type =" collection" /> <!-- ResettableServicePass will inject an array of reset methods here ($serviceId => $method) -->
81
+ <tag name =" kernel.event_subscriber" />
82
+ </service >
77
83
</services >
78
84
</container >
You can’t perform that action at this time.
0 commit comments