Hi both Alexandros,

Thanks for your feedback. I can understand that you think delegate lookup 
should not go in this PSR.

However, I don't think I agree with 2 statements:

You say:

> PSR-11 is focused on getting things from a container, and delegates are 
> completely transparent from this POV. 
>
> As long as a Container implements get() it can become a delegate of a 
> (possibly) more powerful Container that implements delegation. 

My whole point is that in order to have containers working side by side, 
having a 'composite container' delegating the lookup of entries to 
sub-containers is not enough.
You also have to make sure that for any "child container" can retrieve 
dependencies from other "child containers". This is only possible by 
promoting the DDL design pattern. (see the picture in my post above and the 
explanation below for more details).

> I would drop it, in favor of continuing the discussion into a new 
separate PSR, or maybe the "add stuff in the container" PSR

In my opinion, this has nothing to do in the "add stuff in the container" 
PSR. Maybe we can put it in another PSR, but definitely not the "add stuff 
in the container" PSR, this is a completely different issue in my opinion.

--
David.


Le jeudi 17 novembre 2016 12:52:29 UTC+1, Alessandro Pellizzari a écrit :
>
> On 17/11/2016 11:29, David Négrier wrote: 
>
> > I know some of you have doubts about this part of the PSR, so the first 
> > thing might be to decide whether we want to keep it or not. If we decide 
> > to keep it, I'm sure there are plenty of things we can do to improve the 
> > wording :) 
>
> I see the advantages of using delegate containers (I use them daily), 
> but honestly I don't think they should go in this PSR. 
>
> PSR-11 is focused on getting things from a container, and delegates are 
> completely transparent from this POV. 
>
> As long as a Container implements get() it can become a delegate of a 
> (possibly) more powerful Container that implements delegation. 
>
> I think it would be better in a "Container creation and configuration" 
> PSR. 
>
> Bye. 
>
>

-- 
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/b5e98904-e14a-4243-9d17-41e51b226000%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to