@@ -1104,29 +1104,6 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
1104
1104
$ container ->setParameter ('workflow.has_guard_listeners ' , true );
1105
1105
}
1106
1106
}
1107
-
1108
- $ listenerAttributes = [
1109
- Workflow \Attribute \AsAnnounceListener::class,
1110
- Workflow \Attribute \AsCompletedListener::class,
1111
- Workflow \Attribute \AsEnterListener::class,
1112
- Workflow \Attribute \AsEnteredListener::class,
1113
- Workflow \Attribute \AsGuardListener::class,
1114
- Workflow \Attribute \AsLeaveListener::class,
1115
- Workflow \Attribute \AsTransitionListener::class,
1116
- ];
1117
-
1118
- foreach ($ listenerAttributes as $ attribute ) {
1119
- $ container ->registerAttributeForAutoconfiguration ($ attribute , static function (ChildDefinition $ definition , AsEventListener $ attribute , \ReflectionClass |\ReflectionMethod $ reflector ) {
1120
- $ tagAttributes = get_object_vars ($ attribute );
1121
- if ($ reflector instanceof \ReflectionMethod) {
1122
- if (isset ($ tagAttributes ['method ' ])) {
1123
- throw new LogicException (sprintf ('"%s" attribute cannot declare a method on "%s::%s()". ' , $ attribute ::class, $ reflector ->class , $ reflector ->name ));
1124
- }
1125
- $ tagAttributes ['method ' ] = $ reflector ->getName ();
1126
- }
1127
- $ definition ->addTag ('kernel.event_listener ' , $ tagAttributes );
1128
- });
1129
- }
1130
1107
}
1131
1108
1132
1109
private function registerDebugConfiguration (array $ config , ContainerBuilder $ container , PhpFileLoader $ loader ): void
0 commit comments