Services are created when they are requested and not when the configuration file is parsed/analysed at runtime. So there is no overhead, when you create services which are only needed in some parts of your project. The rest of your project does not load those optional services.
2011/9/19 khaled khaled <[email protected]> > Configure factories.yml session > http://www.symfony-project.org/reference/1_2/fr/05-Factories see that link > maybe help you > > 2011/9/19 Nicolò Pignatelli <[email protected]> > >> Can I activate/deactivate a service on a url match basis? >> >> E.g.: I define in my config.yml a service that controls session global >> vars in my frontend and I want my service to be active only when I >> access a frontend url. Viceversa, I want my service to be deactivated >> when I access an url like /admin >> >> Is there a proper way to do this? >> >> Thank you. >> >> -- >> 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 >> > > -- > 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 > -- 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
