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 php-fig+unsubscr...@googlegroups.com.
To post to this group, send email to php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/CAOWwgpnBQiPByJDJvOodGcs-6iAUUJXMPQD_YojPnreWoh4-%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to