I don't think that the  fact that PSR-11 is limited to a get is a reason to 
worry. In my opinion we should see this standard as a stepping stone for 
everything about containers.

Basically, I foresee in the feature various other container-related PSR, 
and PSR-11 will just be a prerequisite, like PSR-0 has been for PSR-4. 
Please, don't let the limited scope of this PSR be a disadvantage, because 
IMHO it's the opposite. 

Il giorno venerdì 13 gennaio 2017 20:07:34 UTC+1, Nicolas Grekas ha scritto:
>
> Thanks for your answer Máté
>
>
> Without ContainerInterface, I should have used an Adapter (e.g. the 
>> Acclimate package) or I could have hardwired a specific container into my 
>> framework to achieve so (I would have hated both solutions).
>>
>
> It looks like the only feature of PSR11 that this is using is the "get" 
> method.
> No "has", and no exception-related logic.
> That basically means a simple closure would do the job equally well, isn't?
>
>
>

-- 
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/7d588b40-6364-4985-9600-7262e2645268%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to