Nick Braica

Results 3 issues of Nick Braica

## Issue When running static analysis with a tool like [PHPStan](https://github.com/phpstan/phpstan) or similar, checks fail when calling the `pagination()` method in the `PostQuery` class since the return type is defined...

1.x

This PR moves to the `registerTwigExtension` method to register the Twig extension, as documented in the 4.x docs: https://craftcms.com/docs/4.x/extend/extending-twig.html#register-a-twig-extension. This fixes the `Twig instantiated before Craft is fully initialized.` warning...

This ports over some logic initially thought about during the BSO project to allow for us to set up any domain to access a site running on the ups.dock network....