What will be the best way to overwrite extension's parameters or
service's arguments defined for example in: \Symfony\Bundle
\FrameworkBundle\Resources\config\routing.xml ?
In my test project I try to extend many core symfony2 classes.

I dont want to paste here entire routing.xml file but lets say I would
like to change "router.class' for my application:

<parameters>
        <parameter key="router.class">Symfony\Component\Routing
\Router</parameter>
<parameters>

and I would like to add also set method for container to router
service:

<service id="router" class="%router.class%">
    <argument type="service" id="routing.loader" />
    <argument>%routing.resource%</argument>
    <argument type="collection">
        <argument key="cache_dir">%kernel.cache_dir%</argument>
    </argument>
    <call method="setContainer">
        <argument type="service" id="service_container" />
     </call>
</service>

Atm I define/overwrite entire service in my application bundle
extension config file. That seems not to be proper way. Is there a way
to overwrite just single parameter/argument from app config file or
maybe from extension/DI configuration file?

looking for help

Best Regards

Luke

-- 
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

Reply via email to