Changed Extension from DI to Httpkernel instance