symfony/symfony — Issue #2807: Private services with camel case name removed after first reference
Author: rcambien
Created: 2011-12-08 13:49:11+00:00
State: open

If you defined a private service with camel case name, you can use it only once.
A second reference to the service throw an exception :

> ServiceNotFoundException: The service "xxxxx" has a dependency on a non-existent service "xxxxx".

Here is my test service.yml:

>services:
> service.priVate:
> class: Test\Priv
> public: false
> arguments: []
>
> service.public1:
> class: Test\Pub
> arguments: [ @service.priVate ]
>
> service.public2:
> class: Test\Pub
> arguments: [ @service.priVate ]

My Symfony version is 2.0.6