-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Workflow] Undeprecate Registry::get
#51400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc @lyrixx |
note, im not recommending registry usage per se, but getting a workflow dynamicly was in fact a 1st class feature |
@ro0NL what kind of implementation of Can you inject all services tagged |
we use default i can resolve it in userland, but then i agree one needs #51227, or maybe leverage the service locator keys however, it feels weird to let users deal with supports configuration, whereas IMHO, if we take this route, both overall i just dont think it's really worth it 😅 |
I would like to do that indeed. But twig need it. But we could simplify too. Since there are many report about this deprecation, I'm really thinking about reverting it! But honestly, this is sub-optimal IMHO. There is no lazy loading :( |
right, it seems what about injecting the workflows as a service locator in the registry, and a 2nd locator with only the corrresponding |
happy to see deprecation dissappear, or crash 🍿 |
see #51976 |
This PR was merged into the 6.4 branch. Discussion ---------- [Workflow] Revert deprecation about Registry | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #51662, fix #49199, fix #51400 | License | MIT Commits ------- 56757f3 [workflow] Revert deprecation about Registry
Description
Hi,
Our system relies heavily on getting a workflow from a object, aka
Registry::get()
It was deprecated in #46000
But this seems to defeat dealing with many workflows that have a different support strategy, aka
framework.workflows.N.supports
, akaWorkflowSupportStrategyInterface
At this point im wondering what the alternative way is, or why
supports
configuration still exists?Example
No response
The text was updated successfully, but these errors were encountered: