Updated AppKernel to be up to date with symfony