src/Bridge/Symfony/Routing/IriConverter.php
private function generateIdentifiersUrl(array $identifiers, string $resourceClass): array
    {
        if (0 === \count($identifiers)) {
            throw new InvalidArgumentException(sprintf(
                'No identifiers defined for resource of type "%s"',
                $resourceClass
            ));
        }

        if (1 === \count($identifiers)) {
            return [rawurlencode((string) reset($identifiers))];
        }

        foreach ($identifiers as $name => $value) {
            $identifiers[$name] = sprintf('%s=%s', $name, $value);
        }

        return array_values($identifiers);
    }
private function generateIdentifiersUrl(array $identifiers, string $resourceClass): array
    {
        if (0 === \count($identifiers)) {
            throw new InvalidArgumentException(sprintf(
                'No identifiers defined for resource of type "%s"',
                $resourceClass
            ));
        }

        if (1 === \count($identifiers)) {
            return [rawurlencode((string) reset($identifiers))];
        }

        foreach ($identifiers as $name => $value) {
            $identifiers[$name] = sprintf('%s=%s', $name, $value);
        }

        return array_values($identifiers);
    }
private function generateIdentifiersUrl ( array $ identifiers , string $ resourceClass ) : array { if ( 0 === \ count ( $ identifiers ) ) { throw new InvalidArgumentException ( sprintf ( 'No identifiers defined for resource of type "%s"' , $ resourceClass ) ) ; } if ( 1 === \ count ( $ identifiers ) ) { return [ rawurlencode ( ( string ) reset ( $ identifiers ) ) ] ; } foreach ( $ identifiers as $ name => $ value ) { $ identifiers [ $ name ] = sprintf ( '%s=%s' , $ name , $ value ) ; } return array_values ( $ identifiers ) ; }
Generate the identifier url.

@throws InvalidArgumentException

@return string[]
Generate the identifier url .