Skip to content

Commit 5049eb0

Browse files
committed
[Workflow] Mark registry as internal and deprecate the service
Instead, all workflow services are tagged and can be injected with the following YAML syntax: ```yaml !tagged_locator { tag: workflow, index_by: name } ``` or PHP syntax: ```php tagged_locator('workflow', 'name') ``` Also, two others tags exists for each workflow types * `workflow.workflow` * `workflow.state_machine`
1 parent 27e032d commit 5049eb0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.2
5+
---
6+
7+
* Mark `Symfony\Component\Workflow\Registry` as internal
8+
49
6.0
510
---
611

Registry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
/**
1818
* @author Fabien Potencier <[email protected]>
1919
* @author Grégoire Pineau <[email protected]>
20+
*
21+
* @internal since Symfony 6.2. Inject the workflow where you need it.
2022
*/
2123
class Registry
2224
{

0 commit comments

Comments
 (0)