Done: https://github.com/fabpot/symfony/pull/381
<https://github.com/fabpot/symfony/pull/381>I just deleted the setPublic( false ) line that's involved with the db connection services. It's the first time I use github to contribute so I hope I didn't do anything wrong :) Regards. On Mon, Jan 10, 2011 at 4:35 PM, Christophe COEVOET <[email protected]> wrote: > Le 10/01/2011 20:28, Gustavo Adrian a écrit : > > Ok, I've found what is causing this problem. The service for the >> connections with this alias: "doctrine.dbal.%s_connection" are now defined >> using $driverDef->setPublic( false ); . Removing this line the problem is >> fixed. What I don't know is exactly what does that method and why is needed. >> I can't find anything on the api (I looked at >> http://api.symfony-reloaded.org/master/index.html in the class >> Symfony\Component\DependencyInjection\Definition) or in the docs of the DIC >> and I didn't work that much with the dependency injection container. It's >> something about visibility of services according to the text of the change >> in >> https://github.com/fabpot/symfony/commit/da5475ec428102c90067c284a8995a87f91a8013. >> >> Does "visibility" means that the services marked as "not public" can't be >> get from the container with "$container->get( $serviceID )" ? if that's so, >> do the connections need to be private now? >> > It is exactly this. They are removed when the container is optimized. Maybe > it is just an error when optimizing DoctrineBundle ? > you should provide a pull request solving this problem. > > -- > Christophe | Stof > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
