The article is about dependency injection, and there's a chapter "sfContext has changed to a Container". I'm afraid of usages that could be made of it.
What are "master rules" about DI ? 2010/8/15 Alexandre Salomé <[email protected]> > I'm preparing an article, but there's one thing I really don't understand : > Why do you want to get the whole container ? > > Target of DI is to inject n services in your custom service, not to inject > the container (equals to universe) in your service. > > Why have you choose such a solution ? Why does Fabien looks OK with it ? > > > 2010/8/14 Константин <[email protected]> > >> Yes, it similar to factory. >> >> >> Constructor of Translate class receive 2 args: DriverInstance (wich >> inject via container) and namespace (I may convey it) >> >> On 14 авг, 15:20, Fabien Potencier <fabien.potenc...@symfony- >> project.com> wrote: >> > On 8/14/10 9:39 AM, Константин wrote: >> > >> > > I need send data to some services on the fly. Something like >> > >> > > $sc->getTranslatorService('translation namespace'); >> > >> > > How can I do that? >> > >> > I'm not sure I understand the question here. You get the service, and >> > then you can do whatever you want with it. It looks like you are looking >> > to create kind of a factory here, right? >> > >> > Fabien >> >> -- >> 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 users" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<symfony-users%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en >> > > > > -- > Alexandre Salomé > http://alexandre-salome.fr > -- Alexandre Salomé http://alexandre-salome.fr -- 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 users" 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-users?hl=en
