Is there a way to set up hostname based routing in Symfony2?
I didn\'t find anything about this topic in the official documentation.
http://sy
I assume that subdomain routing in symfony2 is process of choose defined controller in according to subdomain part of hostname, and session variable is not help to resolve defined controller.
I set request attribute: _controller, in kernel listener like this
$request->attributes->set('_controller','AcmeBundle:Demo:main');
This is help to route to defined controller, but I lose debug profiler in dev environment, still I can not detect a cause