> You should move the config blocks to be before the provider registration

You can inject providers into config blocks, so that doesn't really make a lot of sense, no