[symfony-users] Re: change default sfRoute class

2010-02-17 Thread Mathieu Tricoire
Hi raphael, Yes it's for all routes, I just want define my own generator route class to add an option for generate url function to manage subdomain. For example I define my host in app.yml like that : www.domain.com And in my routing # If the current host is default host, generate relative url

[symfony-users] Re: change default sfRoute class

2010-02-17 Thread Mathieu Tricoire
I found a solution not very pretty but it works for the moment ... but if someone has a solution I take. #factories.yml routing: class: myPatternRouting class myPatternRouting extends sfPatternRouting { public function connect($name, $route) { $routes = $route instanceof

[symfony-users] Re: change default sfRoute class

2010-02-17 Thread Mathieu Tricoire
Not works... On 17 fév, 15:43, Mathieu Tricoire mathieu.trico...@gmail.com wrote: I found a solution not very pretty but it works for the moment ... but if someone has a solution I take. #factories.yml   routing:     class: myPatternRouting class myPatternRouting extends sfPatternRouting

[symfony-users] Re: change default sfRoute class

2010-02-16 Thread Raphael Schumacher
Hi, I am at sfLive.. :-) One (maybe not the single possible) answer to your question: specify your custom route class in routing.yml. For the details, see the beginning of this chapter: http://www.symfony-project.org/reference/1_4/en/10-Routing Cheers, RAPHAEL -- You received this message

[symfony-users] Re: change default sfRoute class

2010-02-16 Thread Mathieu Tricoire
I see no solutions, sfRoute was define in sfRoutingConfigHandler, so go to define in routing.yml On 16 fév, 18:23, Mathieu Tricoire mathieu.trico...@gmail.com wrote: Hi, if someone are not going to sfLive i would like know how to change the default class which generate route (replace sfRoute by

[symfony-users] Re: change default sfRoute class

2010-02-16 Thread Raphael Schumacher
My apologies if I misunderstood your question, and perhaps you may elaborate a bit more on your specific situation. You want to replace sfRoute by your own class in general for all routes (unless explicitly specified in routing.yml)? What sort of routes have you then defined in routing.yml, e.g.