HttpKernelTracerDecorator currently requires the concrete Symfony\Component\HttpKernel\HttpKernel class in its constructor.
This makes the decorator more rigid than necessary and makes testing or alternative kernel decoration harder. The decorator should depend on the narrowest practical contract needed by the service it decorates.
HttpKernelTracerDecorator currently requires the concrete Symfony\Component\HttpKernel\HttpKernel class in its constructor.
This makes the decorator more rigid than necessary and makes testing or alternative kernel decoration harder. The decorator should depend on the narrowest practical contract needed by the service it decorates.