Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't override the default classes in the standard symfony way #13

Open
katalisha opened this issue May 26, 2014 · 3 comments
Open

Can't override the default classes in the standard symfony way #13

katalisha opened this issue May 26, 2014 · 3 comments

Comments

@katalisha
Copy link

Adding something like
parameters:
leaphly_cart.cart.handler.class: IB\CoreBundle\Handler\CartHandler
leaphly_cart.cart.controller.class: IB\CoreBundle\Controller\CartsApiController

to app/config/config.yml doesn't work to override the classes.

@katalisha
Copy link
Author

Maybe the roles should be registered in a compiler override when all the config has been loaded?

@liuggio
Copy link
Member

liuggio commented May 26, 2014

Hi,
you should use the bundle config file in order to play with the parameters :)

maybe this could help you...

https://github.com/leaphly/CartBundle/blob/master/Tests/DependencyInjection/LeaphlyCartExtensionTest.php#L274

Let me know I'll try to answer fast as possibile.

@katalisha
Copy link
Author

Thanks for replying so quickly. I can override them by creating a new service and putting that in the leaphly config but it would be nicer if I could override the class in the existing service in this way.

It's more of a suggestion than a problem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants