Thanks. I think I missed that.

Anyway, how do I prepare my application to have interoperable containers, 
since they don't agree on how to add new services? I will have to write 
adapters for each specific implementation... doesn't that defeat the 
purpose of the PSR? Shouldn't "adding services" be in-scope, rather than 
'let some implementations rely on autowiring, others have specific methods 
for registering'...?

Was this discussed? Anyone have a link for the discussion? Search tool here 
in googlegroups didn't help me much.

Thanks again and sorry if I'm missing something.

Em segunda-feira, 3 de outubro de 2016 14:39:49 UTC-3, Stefano Torresi 
escreveu:
>
> Check the meta doc:
>
> https://github.com/php-fig/fig-standards/blob/master/proposed/container-meta.md#3-scope
>
> Il giorno lun 3 ott 2016 alle ore 19:34 Pedro Cordeiro <pedro...@gmail.com 
> <javascript:>> ha scritto:
>
>> I tried searching but couldn't find the reason PSR-11 doesn't have a 
>> `register`, `add` or similar method to register a new service in the 
>> container.
>>
>> I'm not sure if I misunderstood something, but it looks like I'll still 
>> have to create a new contract wrapper around PSR-11 to define how to 
>> register new services to the container, and then I'll have to make a bridge 
>> for each provider, since they won't agree on how to add new services. 
>> Wouldn't it defeat the purpose of this PSR, which is interoperability?
>>
>> -- 
>> 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 <javascript:>.
>> To post to this group, send email to php...@googlegroups.com 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/php-fig/1877a319-8b9e-4150-8048-97e6b43750ce%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/php-fig/1877a319-8b9e-4150-8048-97e6b43750ce%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/47bcf0c9-16e2-46f7-bf41-c728e02adf45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to