src/Hydra/Serializer/DocumentationNormalizer.php
private function getContext(): array
    {
        return [
            '@vocab' => $this->urlGenerator->generate('api_doc', ['_format' => self::FORMAT], UrlGeneratorInterface::ABS_URL).'#',
            'hydra' => ContextBuilderInterface::HYDRA_NS,
            'rdf' => ContextBuilderInterface::RDF_NS,
            'rdfs' => ContextBuilderInterface::RDFS_NS,
            'xmls' => ContextBuilderInterface::XML_NS,
            'owl' => ContextBuilderInterface::OWL_NS,
            'schema' => ContextBuilderInterface::SCHEMA_ORG_NS,
            'domain' => ['@id' => 'rdfs:domain', '@type' => '@id'],
            'range' => ['@id' => 'rdfs:range', '@type' => '@id'],
            'subClassOf' => ['@id' => 'rdfs:subClassOf', '@type' => '@id'],
            'expects' => ['@id' => 'hydra:expects', '@type' => '@id'],
            'returns' => ['@id' => 'hydra:returns', '@type' => '@id'],
        ];
    }
private function getContext(): array
    {
        return [
            '@vocab' => $this->urlGenerator->generate('api_doc', ['_format' => self::FORMAT], UrlGeneratorInterface::ABS_URL).'#',
            'hydra' => ContextBuilderInterface::HYDRA_NS,
            'rdf' => ContextBuilderInterface::RDF_NS,
            'rdfs' => ContextBuilderInterface::RDFS_NS,
            'xmls' => ContextBuilderInterface::XML_NS,
            'owl' => ContextBuilderInterface::OWL_NS,
            'schema' => ContextBuilderInterface::SCHEMA_ORG_NS,
            'domain' => ['@id' => 'rdfs:domain', '@type' => '@id'],
            'range' => ['@id' => 'rdfs:range', '@type' => '@id'],
            'subClassOf' => ['@id' => 'rdfs:subClassOf', '@type' => '@id'],
            'expects' => ['@id' => 'hydra:expects', '@type' => '@id'],
            'returns' => ['@id' => 'hydra:returns', '@type' => '@id'],
        ];
    }
private function getContext ( ) : array { return [ '@vocab' => $ this -> urlGenerator -> generate ( 'api_doc' , [ '_format' => self :: FORMAT ] , UrlGeneratorInterface :: ABS_URL ) . '#' , 'hydra' => ContextBuilderInterface :: HYDRA_NS , 'rdf' => ContextBuilderInterface :: RDF_NS , 'rdfs' => ContextBuilderInterface :: RDFS_NS , 'xmls' => ContextBuilderInterface :: XML_NS , 'owl' => ContextBuilderInterface :: OWL_NS , 'schema' => ContextBuilderInterface :: SCHEMA_ORG_NS , 'domain' => [ '@id' => 'rdfs:domain' , '@type' => '@id' ] , 'range' => [ '@id' => 'rdfs:range' , '@type' => '@id' ] , 'subClassOf' => [ '@id' => 'rdfs:subClassOf' , '@type' => '@id' ] , 'expects' => [ '@id' => 'hydra:expects' , '@type' => '@id' ] , 'returns' => [ '@id' => 'hydra:returns' , '@type' => '@id' ] , ] ; }
Builds the JSON-LD context for the API documentation.
Builds the JSON - LD context for the API documentation .