ruslanh
ruslanh

Reputation: 3

Overriding symfony2 component

Can anyone of you help me with an example of how to override symfony's component. In my case I need to override Session class from Symfony/Component/HttpFoundation/Session.php

Thanks!

Upvotes: 0

Views: 1011

Answers (1)

Kris Wallsmith
Kris Wallsmith

Reputation: 8965

You can override the session.class parameter in config.yml:

parameters:
    session.class: Foo\Bar\Session

Upvotes: 6

Related Questions