Commits ------- 9bcce9f fix tests fc4787a fix non-extensible router Discussion ---------- Router fix Right now, the router is hard to overwrite (you need always a compiler pass). This commit fixes this. --------------------------------------------------------------------------- by fabpot at 2011/07/18 01:15:36 -0700 Why do you need a complier pass to override the router? --------------------------------------------------------------------------- by schmittjoh at 2011/07/18 01:47:47 -0700 How would you suggest to overwrite it? Basically, I want to do something like this: ```yml services: router: parent: router.default class: MyClass calls: - [moreDeps, []] ``` --------------------------------------------------------------------------- by Seldaek at 2011/07/18 05:07:19 -0700 Then maybe we should somehow support redefining services with the same name while keeping the old one as parent, otherwise we need this foo.default for every service out there? --------------------------------------------------------------------------- by fabpot at 2011/07/18 06:30:34 -0700 as @Seldeak said, why do that for the router and not all services? --------------------------------------------------------------------------- by schmittjoh at 2011/07/18 06:38:39 -0700 I have designed the SecurityBundle this way where extension is encouraged. --------------------------------------------------------------------------- by schmittjoh at 2011/07/18 11:15:57 -0700 I should add that this is mainly a problem for services where you still want to use the semantic configuration that is provided by the bundle. For services which are not configured by the extension, this is not so much of an issue. Anyway, if you don't want to merge it, just close the PR. I have no problem with using a compiler pass. --------------------------------------------------------------------------- by fabpot at 2011/07/18 11:55:11 -0700 We already have such a case with translator and translator.real. I will review the existing services to see where it makes sense to implement the same strategy. --------------------------------------------------------------------------- by Seldaek at 2011/07/18 12:20:55 -0700 I guess you'd do it anyway, but we should pick a winner between .real and .default --------------------------------------------------------------------------- by lsmith77 at 2011/07/18 12:26:52 -0700 I would prefer ".default" as ".real" always confused me.
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|