ouardisoft/SitemapBundle — pull request #6 by stnw (2013-07-29 10:40:58+00:00)
Title: 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."