On Wed, Oct 26, 2016 at 8:59 AM, Hari K T <[email protected]> wrote: > The only concern to me is > https://github.com/container-interop/container-interop/issues/69 regarding > return value of get . > > Basically this is the text : > > Two successive calls to 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. > > I don't want to drag everyone again to the same discussion. But I wonder if > there is any implementors having any concern about the same.
No issues from my POV as maintainer on zend-servicemanager. The reason is thus: we have always supported a concept of "shared" services. Services are shared by default, but when configuring the container, you can mark a service as "not shared"; this can be useful when a particular service *should* have multiple instances. As an example, our EventManager is not designed to be shared between different services, but has a constructor pattern that *does* require access to other services, and thus management by the container. Similarly, Pimple 1 separated shared from unshared services, and v3 allows you to make services unshared by mapping a service to the return of the container's factory() method. While it could be considered niche functionality, having the ability to act in this way covers a more generalized set of functionality, which, more importantly, is already seen in existing implementations, making it useful to the specification. -- Matthew Weier O'Phinney [email protected] 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAJp_myVXmh4-Und6a6aLX-kDp3bkMwZkDshwqeH722X29jS8zQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
