moved twig extension to `boot()`

Moved the twig extension from `register()` to `boot()`. This way the
order of service providers does not matter.