Shouldn't this function behave like the default Kernel? https://github.com/symfony/HttpKernel/blob/master/Kernel.php#L554