Hi, I use advanced application template, now I have a mail task that contains absolute frontend application url, but how to generate the frontend application url in console application?
I can store the frontend host in
common/config/params-local.php, and concat it with the real path.
But is there exist a better solution?
Note: the task is trigger and run on console application only, so there is no way to pass the url from frontend to console.