Hey Carl!

I'm not familiar with the FOSUserBundle, but if I say anything wrong, people
will definitely correct me. Here's how it works:

First, each bundle allows you to configure a lot of different things. For
the most part, it should allow you to customize just about everything you'd
ever need to customize. However, if there *is* something else you want to
customize, you can do this.

In your case, it sounds like you just need to override a service. You're
right that, to do this, you *can* just create a new service of the same name
in your application configuration. I believe that this service definition
just needs to be below the FOSUserBundle configuration so that the bundle
configuration is loaded first (and then your service overrides it). If I'm
wrong, someone please correct me.

If you have any questions on the services part, take a look at the docs on
that and let me know if it doesn't answer any of your questions. We
will/need a cookbook on more advanced ways (like what you need to do here)
of overriding things in a bundle.

http://symfony.com/doc/2.0/book/service_container.html

Thanks!

Ryan Weaver
US Office Head & Trainer - KnpLabs - Nashville, TN
http://www.knplabs.com <http://www.knplabs.com/en>
http://www.thatsquality.com
Twitter: @weaverryan


On Fri, Apr 22, 2011 at 3:23 PM, Carl <carl.par...@gmail.com> wrote:

> No one has any idea how to do this or if this is possible?
>
>  --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to