I need the $this->createUrl() functionality in the command. The command is creating sitemap and I use url manager everywhere, so I need to specify params and have the Url created for me. How this can be done?
If there is now way for this, I’d like to create a feature request.
You need to configure ‘urlManager’ and ‘request’ application components in the console application configuration since they are not registered by default.