A minor change, but maybe we should add some note or example in the HttpKernel component docs. See https://github.com/symfony/symfony/pull/22228.