Skip to content

Commit 56757f3

Browse files
committed
[workflow] Revert deprecation about Registry
1 parent d6c8797 commit 56757f3

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

UPGRADE-6.2.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,6 @@ VarDumper
132132
Workflow
133133
--------
134134

135-
* The `Registry` is marked as internal and should not be used directly. use a tagged locator instead
136-
```
137-
tagged_locator('workflow', 'name')
138-
```
139135
* The first argument of `WorkflowDumpCommand` should be a `ServiceLocator` of
140136
all workflows indexed by names
141137
* Deprecate calling `Definition::setInitialPlaces()` without arguments

src/Symfony/Bundle/FrameworkBundle/Resources/config/workflow.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@
3939
->abstract()
4040
->set('workflow.marking_store.method', MethodMarkingStore::class)
4141
->abstract()
42-
->set('.workflow.registry', Registry::class)
43-
->alias(Registry::class, '.workflow.registry')
44-
->deprecate('symfony/workflow', '6.2', 'The "%alias_id%" alias is deprecated, inject the workflow directly.')
45-
->alias('workflow.registry', '.workflow.registry')
46-
->deprecate('symfony/workflow', '6.2', 'The "%alias_id%" alias is deprecated, inject the workflow directly.')
42+
->set('workflow.registry', Registry::class)
43+
->alias(Registry::class, 'workflow.registry')
4744
->set('workflow.security.expression_language', ExpressionLanguage::class)
4845
;
4946
};

src/Symfony/Bundle/TwigBundle/Resources/config/twig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
->tag('translation.extractor', ['alias' => 'twig'])
145145

146146
->set('workflow.twig_extension', WorkflowExtension::class)
147-
->args([service('.workflow.registry')])
147+
->args([service('workflow.registry')])
148148

149149
->set('twig.configurator.environment', EnvironmentConfigurator::class)
150150
->args([

src/Symfony/Component/Workflow/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CHANGELOG
1111
* Add support for multiline descriptions in PlantUML diagrams
1212
* Add PHP attributes to register listeners and guards
1313
* Deprecate `GuardEvent::getContext()` method that will be removed in 7.0
14+
* Revert: Mark `Symfony\Component\Workflow\Registry` as internal
1415

1516
6.2
1617
---

src/Symfony/Component/Workflow/Registry.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
/**
1818
* @author Fabien Potencier <fabien@symfony.com>
1919
* @author Grégoire Pineau <lyrixx@lyrixx.info>
20-
*
21-
* @internal since Symfony 6.2. Inject the workflow where you need it.
2220
*/
2321
class Registry
2422
{

0 commit comments

Comments
 (0)