src/Bridge/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php
private function getFormats(array $configFormats): array
    {
        $formats = [];
        foreach ($configFormats as $format => $value) {
            foreach ($value['mime_types'] as $mimeType) {
                $formats[$format][] = $mimeType;
            }
        }

        return $formats;
    }
private function getFormats(array $configFormats): array
    {
        $formats = [];
        foreach ($configFormats as $format => $value) {
            foreach ($value['mime_types'] as $mimeType) {
                $formats[$format][] = $mimeType;
            }
        }

        return $formats;
    }
private function getFormats ( array $ configFormats ) : array { $ formats = [ ] ; foreach ( $ configFormats as $ format => $ value ) { foreach ( $ value [ 'mime_types' ] as $ mimeType ) { $ formats [ $ format ] [ ] = $ mimeType ; } } return $ formats ; }
Normalizes the format from config to the one accepted by Symfony HttpFoundation.
Normalizes the format from config to the one accepted by Symfony HttpFoundation .