how to add custom configuration e.g. host_name = "www.abc.com" in symfony2 ? I know we can access the hostname using request object but I want the host name in symfony CLI custom command.
http://symfony.com/doc/current/cookbook/console/sending_emails.html
parameters:
router.request_context.host: example.org
router.request_context.scheme: https
router.request_context.base_url: my/path
$context = $this->getContainer()->get('router')->getContext();
worked.