When creating a batch script it is sometimes necessary to generate urls, for example to generate product feeds on an e-commerce site or to send an email with links to a website.
For this it is necessary to be able to configure the domain name as well as the relative path of your site or application developed in Symfony.
Setting up Symfony
How do I generate a url?
You can find more information about orders and batches in other articles.