Absolute Url Globally

Hi guys. I use Yii 1 for a long time but I’m really new into Yii2. I’m trying to set absolute url creation globally. Maybe overwriting the UrlManager class or with another approach. Can someone help me?

I already know that I can set scheme to true on Url::to(’’, true)… but I’m looking a way to set it globally.

What you mean "globally"?