Adding notes about Extension registration to the DI component
Removing unused use statements from code sample
Merge pull request #2161 from richardmiller/adding_di_note

Adding notes about Extension registration to the DI component