Moving registering extension above loading config in DI code sample

| Q                  | A
| ------------------- | ---
| Doc fix?        | yes
| New docs?    | no
| Applies to     | all

As it was an exception would have been thrown with the example as no extension would have been registered to process the config when is it was loaded.