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 3333use Symfony \Component \HttpKernel \DependencyInjection \ControllerArgumentValueResolverPass ;
3434use Symfony \Component \HttpKernel \DependencyInjection \RegisterControllerArgumentLocatorsPass ;
3535use Symfony \Component \HttpKernel \DependencyInjection \RemoveEmptyControllerArgumentLocatorsPass ;
36+ use Symfony \Component \HttpKernel \DependencyInjection \ResettableServicePass ;
3637use Symfony \Component \PropertyInfo \DependencyInjection \PropertyInfoPass ;
3738use Symfony \Component \Routing \DependencyInjection \RoutingResolverPass ;
3839use Symfony \Component \Serializer \DependencyInjection \SerializerPass ;
@@ -117,6 +118,7 @@ public function build(ContainerBuilder $container)
117118 $ container ->addCompilerPass (new CachePoolPrunerPass (), PassConfig::TYPE_AFTER_REMOVING );
118119 $ this ->addCompilerPassIfExists ($ container , FormPass::class);
119120 $ container ->addCompilerPass (new WorkflowGuardListenerPass ());
121+ $ container ->addCompilerPass (new ResettableServicePass ());
120122
121123 if ($ container ->getParameter ('kernel.debug ' )) {
122124 $ container ->addCompilerPass (new AddDebugLogProcessorPass (), PassConfig::TYPE_BEFORE_OPTIMIZATION , -32 );
Original file line number Diff line number Diff line change 7474 <service id =" Symfony\Component\Config\Resource\SelfCheckingResourceChecker" >
7575 <tag name =" config_cache.resource_checker" priority =" -990" />
7676 </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 >
7783 </services >
7884</container >
You can’t perform that action at this time.
0 commit comments