You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #51227 [FrameworkBundle][Workflow] Attach the workflow's configuration to the workflow tag (lyrixx)
This PR was merged into the 7.1 branch.
Discussion
----------
[FrameworkBundle][Workflow] Attach the workflow's configuration to the `workflow` tag
| Q | A
| ------------- | ---
| Branch? | 7.1
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets |
| License | MIT
| Doc PR |
Since the registry is deprecated, users have to build there own registry when a service locator is not enough.
However, some information can be missing, like the `supports` configuration option.
In this PR, I add the whole configuration to the tag, so everyone can build exactly what they need.
The config is added only to the `workflow` tag, not sub tags. To get it:
```php
class Kernel extends BaseKernel implements CompilerPassInterface
{
use MicroKernelTrait;
public function process(ContainerBuilder $container)
{
foreach ($container->findTaggedServiceIds('workflow.workflow') as $id => $attributes) {
$config = $container->getDefinition($id)->getTag('workflow')[0];
dd($config);
}
}
}
```
Commits
-------
887a3c05bc6 [FrameworkBundle][Workflow] Attach the workflow's configuration to the `workflow` tag
0 commit comments