-
Notifications
You must be signed in to change notification settings - Fork 89
Conversation
This proposal is a simple implementation of ContainerInterface. Now we can use it in [zend-stratigility-skeleton](https://github.com/container-interop/container-interop) for example.
My only concern is that the container-interop interfaces were just admitted as a draft PSR... which means there's still a very high liklihood of changes possible. We may want to do this as an "InteropManager" or similar, with documentation in the README indicating it's experimental and unstable until the PSR for container interop is accepted. |
I can try to write a OR we can write a little interop project between service manager and interop-container that implement this feature.. Tomorrow if php-fig will release psr about this stuff we can write another interop project with them proposal |
@weierophinney this is a project's draft :) easy easy |
In your opinion is a good idea builds a new project? 👍 It's clear in my opinion and we can not add unstable class in zend-servicemanager |
@weierophinney no, the best you could do is use to mark it using |
Looks good. Maybe one problem could be the optional parameters. I know it's not a problem in PHP but it's not so clean. Isn't it? |
@sandrokeil the intereface is already implemented without modified.. Why could it be a problem? |
@gianarb I think it's confusing because the ContainerInterface function definition is The ServiceLocatorInterface is ok, that's right. But it could be changed in ZF3. So it's magic to call So I think it's not real support of interoperability. But we could fix this for ZF3. |
Note that this is perfectly legit PHP |
Merged to develop for release with 2.6.0. |
@@ -13,7 +13,8 @@ | |||
} | |||
}, | |||
"require": { | |||
"php": ">=5.5" | |||
"php": ">=5.5", | |||
"container-interop/container-interop": "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this should be a constrained version (1.0.*)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry #5
Remove return type hint
This proposal is a simple implementation of ContainerInterface.
Now we can use it in zend-stratigility-skeleton for example.