Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Open
Labels
Description
Example usage:
useSymfony\Component\DependencyInjection\ServiceLocator;useSymfony\Component\DependencyInjection\Attribute\AutowireLocator;useSymfony\Component\Workflow\Attribute\AsTransitionListener;useSymfony\Component\Workflow\Event\TransitionEvent;class GenericListener{publicfunction__construct( #[AutowireLocator('workflow','name')]privateServiceLocator$workflows ) { } #[AsTransitionListener()]publicfunctiondoSomething(TransitionEvent$event):void {$workflow =$this->workflows->get($event->getWorkflowName()); }}
iterator works as well