Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ee39b3

Browse filesBrowse files
feature #49102 [FrameworkBundle][Workflow] Register alias for argument for workflow services with workflow name only (lyrixx)
This PR was merged into the 6.3 branch. Discussion ---------- [FrameworkBundle][Workflow] Register alias for argument for workflow services with workflow name only | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | yes | Deprecations? | | Tickets | | License | MIT | Doc PR | --- This allows to write: ```php public function __construct( #[Target('rules')] private readonly WorkflowInterface $rulesStateMachine, ) { ``` instead of: ```php public function __construct( #[Target('rulesStateMachine')] private readonly WorkflowInterface $rulesStateMachine, ) { ``` Commits ------- 743f95b [FrameworkBundle] Register alias for argument for workflow services with workflow name only
2 parents e480a66 + 743f95b commit 2ee39b3
Copy full SHA for 2ee39b3

File tree

Expand file treeCollapse file tree

2 files changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CHANGELOG
1212
* Deprecate `framework:exceptions` tag, unwrap it and replace `framework:exception` tags' `name` attribute by `class`
1313
* Deprecate the `notifier.logger_notification_listener` service, use the `notifier.notification_logger_listener` service instead
1414
* Allow setting private services with the test container
15+
* Register alias for argument for workflow services with workflow name only
1516

1617
6.2
1718
---

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
10061006
$container->setDefinition($workflowId, $workflowDefinition);
10071007
$container->setDefinition(sprintf('%s.definition', $workflowId), $definitionDefinition);
10081008
$container->registerAliasForArgument($workflowId, WorkflowInterface::class, $name.'.'.$type);
1009+
$container->registerAliasForArgument($workflowId, WorkflowInterface::class, $name);
10091010

10101011
// Validate Workflow
10111012
if ('state_machine' === $workflow['type']) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.