Skip to content
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

Rename namespace #17

Open
Anahkiasen opened this issue Nov 28, 2015 · 2 comments
Open

Rename namespace #17

Anahkiasen opened this issue Nov 28, 2015 · 2 comments

Comments

@Anahkiasen
Copy link

This is a small matter but since service definitions aren't necessarily related to containers anymore, it might be a good idea to rename the namespace from Interop\Container\Definition to just Interop\Definition since Interop already acts as vendor namespace. What do you think?

@mnapoli
Copy link
Member

mnapoli commented Nov 28, 2015

Those are container definitions though? I.e. they are not service definitions, they define how to create a service, which is what a container do (the service can exist without those definitions).

@Anahkiasen
Copy link
Author

What I mean is you could very much provide an implementation of definition-interop that doesn't rely on containers. Like, there is nothing specific to containers in the definitions themselves, they just define how to create and manipulate services. Even more now that we don't have the concept of identifier anymore.

Per example you could have a factory package of sorts that accepts a definition and returns the created instance, without a container, just, returns the translated definitions. I'm not saying containers isn't the main purpose of this PSR mind you, just, it could be seen as limiting the scope of what is possible when in actuality all the definitions do is describe method calls and assignments, which can have much broader purposes.

I do understand on the other hand if you would rather only describe this PSR as being related to container to avoid misuse though, would be also understandable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants