ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\ApiPlatformExtension::registerJsonLdConfiguration PHP Method

registerJsonLdConfiguration() private method

Registers the JSON-LD and Hydra configuration.
private registerJsonLdConfiguration ( array $formats, XmlFileLoader $loader )
$formats array
$loader Symfony\Component\DependencyInjection\Loader\XmlFileLoader
    private function registerJsonLdConfiguration(array $formats, XmlFileLoader $loader)
    {
        if (!isset($formats['jsonld'])) {
            return;
        }
        $loader->load('jsonld.xml');
        $loader->load('hydra.xml');
    }