Unfortunately, the command line context does not know about your VirtualHost
or domain name. This means that if you generate absolute URLs within a
console command you'll probably end up with something like http://localhost/foo/bar
which is not very useful.

To fix this, you need to configure the "request context", which is a fancy
way of saying that you need to configure your environment so that it knows
what URL it should use when generating URLs.

There are two ways of configuring the request context: at the application level
and per Command.

To configure the Request Context - which is used by the URL Generator - you can
redefine the parameters it uses as default values to change the default host
(localhost) and scheme (http). You can also configure the base path if Symfony
is not running in the root directory.

Note that this does not impact URLs generated via normal web requests, since those
will override the defaults.