Skip to content

Commit 6e1f694

Browse files
committed
bug #22652 [Workflow] Move twig extension registration to twig bundle (ogizanagi)
This PR was merged into the 3.2 branch. Discussion ---------- [Workflow] Move twig extension registration to twig bundle | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | not really | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A It's probably very late, but I think the twig extension registration is supposed to be done from the `TwigBundle` rather than the `FrameworkBundle`. Fortunately, it doesn't cause any issue currently when using the framework bundle and the workflow component without twig, because it only creates a `workflow.twig_extension` service you'll probably never call, and the `twig.extension` tag is never processed. But still, creates a useless service that cannot be called (and is not removed because it's public). So this PR aims for consistency over other twig extensions registration, and removing this service when not using twig. It isn't a BC break to me, as you usually already use the `TwigBundle` for other extensions. Commits ------- 3fc80d10ef [Workflow] Move twig extension registration to twig bundle
2 parents 86b97c3 + 922eadb commit 6e1f694

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Resources/config/workflow.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,5 @@
2222
<service id="workflow.marking_store.single_state" class="Symfony\Component\Workflow\MarkingStore\SingleStateMarkingStore" abstract="true" />
2323

2424
<service id="workflow.registry" class="Symfony\Component\Workflow\Registry" />
25-
26-
<service id="workflow.twig_extension" class="Symfony\Bridge\Twig\Extension\WorkflowExtension">
27-
<argument type="service" id="workflow.registry" />
28-
<tag name="twig.extension" />
29-
</service>
3025
</services>
3126
</container>

0 commit comments

Comments
 (0)