moved the logic from HttpKernel in FrameworkBundle to the HttpKernel component