PHP Trait NilPortugues\Symfony\JsonApiBundle\Serializer\JsonApiResponseTrait

Afficher le fichier Open project: nilportugues/symfony-jsonapi

Méthodes protégées

Méthode Description
addHeaders ( Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface
errorResponse ( string $json ) : Response
resourceCreatedResponse ( string $json ) : Response
resourceDeletedResponse ( string $json ) : Response
resourceNotFoundResponse ( string $json ) : Response
resourcePatchErrorResponse ( string $json ) : Response
resourcePostErrorResponse ( string $json ) : Response
resourceProcessingResponse ( string $json ) : Response
resourceUpdatedResponse ( string $json ) : Response
response ( string $json ) : Response
unsupportedActionResponse ( string $json ) : Response

Private Methods

Méthode Description
createResponse ( $data ) : Response

Method Details

addHeaders() protected méthode

protected addHeaders ( Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface
$response Psr\Http\Message\ResponseInterface
Résultat Psr\Http\Message\ResponseInterface

errorResponse() protected méthode

protected errorResponse ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response

resourceCreatedResponse() protected méthode

protected resourceCreatedResponse ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response

resourceDeletedResponse() protected méthode

protected resourceDeletedResponse ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response

resourceNotFoundResponse() protected méthode

protected resourceNotFoundResponse ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response

resourcePatchErrorResponse() protected méthode

protected resourcePatchErrorResponse ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response

resourcePostErrorResponse() protected méthode

protected resourcePostErrorResponse ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response

resourceProcessingResponse() protected méthode

protected resourceProcessingResponse ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response

resourceUpdatedResponse() protected méthode

protected resourceUpdatedResponse ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response

response() protected méthode

protected response ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response

unsupportedActionResponse() protected méthode

protected unsupportedActionResponse ( string $json ) : Response
$json string
Résultat Symfony\Component\HttpFoundation\Response