You only check for request previously (https://github.com/symfony/symfony/pull/8944/files#L1R84) so it would be good to wrap these 3 lines with an additional ``if ($config['additionnal_formats']) {`` .. ``}``.