-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove multi-application registration #38
Comments
I'm studying a fix for this issue, and the idea I have in mind is as follows:
What do you think? |
I don't believe we should rely on the user provided name to control that. On the first run we should register the web application using For BC, we'd create an alias for the user provided name (which points to All the compiler passes we have should use the class names as service ids (and map the interface as aliases), because they will only be registered once. This gives us an opportunity to clean up the dynamic service creation and pull things into the XML files. Does that make sense to you? |
Okay, so let me see if I understood correctly: when processing the services for an application we should add a The second part makes sense since there would be a single instance of each compiler pass since there's only a single application registered. I only have to see what needs to be moved to the XML files but, like you said, we clean up a lot of PHP making the whole service definition a lot easier. |
Have you considered splitting your app up in logistical chunks? For example |
We now support the configuration of different apps within a single DI container. That creates a lot of complexity for no good reason.
By removing this, we'd be able to define "static" services for routers and buses, which makes our lives much simpler.
It's quite important to mention that we should aim at doing this without breaking BC too much (registering aliases for things and still look for parameters using the app name as the prefix).
The text was updated successfully, but these errors were encountered: