Parameter "host"  if script runs from command line

Now if to run script from cmd instead the real host in url`s there appears "localhost".

http://symfony.com/doc/current/book/routing.html :
"When generating absolute URLs for scripts run from the command line, you'll need to manually set the desired host on the RequestContext object."