get
with the same identifier SHOULD return the same value. However, depending on the implementor
design and/or user
configuration, different values might be returned, so user
SHOULD NOT rely on getting the same value on 2 successive calls. get
with the same identifier MUST return the same value).get
with the same identifier SHOULD return the same value.get
with the same identifier SHOULD return the same value. A container MAY offer the possibility to return a new value for some identifiers if the user configured it accordingly.--
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/8711ead1-3aa7-d9e4-caad-04852cf2338f%40garfieldtech.com.--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscribe@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
> email to php-fig+unsubscribe@googlegroups.com.
> To post to this group, send email to php...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/php-fig/8711ead1-3aa7-d9e4-caad-04852cf2338f%40garfieldtech.com.
>
> For more options, visit https://groups.google.com/d/optout.
--
Matthew Weier O'Phinney
mweiero...@gmail.com
https://mwop.net/
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscribe@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAJp_myVztpuKK0vDdJNXkvMqVcXCp84PitP%3DMt_vuNy1%2Bhbv4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
1) These implementations are perfectly fine PSR-11 implementations, as it's phrased right now?
2) These implementations are incompatible between themselves for pretty much every use case …
3) The incompatibility between these two containers is not an application/configuration issue, but plain lack of interoperability between them?
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscribe@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/1478611947.1809988.781078993.4D1D6D44%40webmail.messagingengine.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CADuw3E8UDnXWJ5WHQ6ES_JQuSMx1YeVLY_1EWCDXKWVgy2fvsg%40mail.gmail.com.
> email to php-fig+u...@googlegroups.com.
> To post to this group, send email to php...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/php-fig/8711ead1-3aa7-d9e4-caad-04852cf2338f%40garfieldtech.com.
>
> For more options, visit https://groups.google.com/d/optout.
--
Matthew Weier O'Phinney
mweiero...@gmail.com
https://mwop.net/
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAJp_myVztpuKK0vDdJNXkvMqVcXCp84PitP%3DMt_vuNy1%2Bhbv4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Pedro CordeiroProduto
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
Hi, Matthew!
I understand everything you said. About the configuration responsibility, this PSR's scope and the fact that it's coherent to have non-shared services in some contexts. I never disagreed with any of that.I'll try to be more objective here.Given two containers:a) "ContainerShared", that implements PSR-11 and ONLY returns shared instances, no option to configure non-shared services;b) "ContainerFactory", that implements PSR-11 and ONLY returns non-shared instances, acts as a factory always.Do you agree that:1) These implementations are perfectly fine PSR-11 implementations, as it's phrased right now?2) These implementations are incompatible between themselves for pretty much every use case, including zend-expressive, that is currently the most successful case of container interoperability?3) The incompatibility between these two containers is not an application/configuration issue, but plain lack of interoperability between them?If you agree with (1), (2) and (3), the final question that stands is: is it still OK to have container implementations that are NOT interoperable implementing an interoperability standard?
If *YOU*, zend-expressive developer, were to develop a truly agnostic container consumption implementation based on PSR-11, you'd have to document something to the effect of: "while zend-expressive is compatible with PSR-11 containers in general, it's not meant to be used with factory-only containers. Choose accordingly.". THAT is what strikes me as something weird to have.
get
can return anything (a mixed value)"--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscribe@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/a232b50d-137f-4a74-8500-bd9b67b07a31%40googlegroups.com.
In the meantime, other projects will likely be satisfied with PSR-11 more or less as-is, if for no other reason than to claim support for it. I imagine almost all of these will be frameworks and similar libraries, or container libraries themselves. Other projects, especially end-user projects, will see far less utility in a get-only PSR, and will therefore delay adoption until the set portion is ready as well. Which, near as I can see, is fine for the aims of this particular PSR, which seems to be designed more for frameworks than for application developers.
As to the specific question asked here, either option 1 or 3 would fit best, with 3 being more explicit in the expected behavior of a compliant implementation, especially as regards the need for further verification of how the container is configured (be that via implementation or interface). I'd probably mention the -set interfaces in there somewhere as a point of reference (the PSR can be amended with the actual number(s) when such is/are assigned), but that's me; it may not be desirable in this context.