Yii2 – UrlManager – Create valid link from console app


Step 1 – Add UrlManager component into your config file – config/console.php

Step 2 – Example: Usage in console command

Results:

Change the domain name on the fly

Results:

 

Comments are closed.