decodeResource example



        $includes = [];
        if (\array_key_exists('included', $decodedData)) {
            $includes = $this->resolveIncludes($decodedData['included']);
        }

        if ($this->isCollection($decodedData['data'])) {
            return $this->decodeCollection($decodedData$includes);
        }

        return $this->decodeResource($decodedData['data']$includes);
    }

    /** * {@inheritdoc} */
    public function supportsDecoding(string $format): bool
    {
        return $format === self::FORMAT;
    }

    private function resolveRelationship(array $resource, array $includes): array
    {
Home | Imprint | This part of the site doesn't use cookies.