PHP Interface WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface

Author: Adam Piotrowski ([email protected])
Afficher le fichier Open project: wellcommerce/wellcommerce Interface Usage Examples

Méthodes publiques

Méthode Description
getDataset ( ) : WellCommerce\Component\DataSet\DataSetInterface
getManager ( ) : WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface
getResourceType ( ) : string
getSerializer ( ) : Symfony\Component\Serializer\SerializerInterface
handleCreateRequest ( Request $request ) : array Handles the "create" request for given resource
handleDeleteRequest ( Request $request, integer $identifier ) : array Handles the "delete" request for given resource
handleGetRequest ( Request $request, integer $identifier ) : array Handles the "get" request for given resource
handleListRequest ( Request $request ) : array Handles the "list" request for given resource
handleUpdateRequest ( Request $request, integer $identifier ) : array Handles the "update" request for given resource

Method Details

getDataset() public méthode

public getDataset ( ) : WellCommerce\Component\DataSet\DataSetInterface
Résultat WellCommerce\Component\DataSet\DataSetInterface

getManager() public méthode

public getManager ( ) : WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface
Résultat WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface

getResourceType() public méthode

public getResourceType ( ) : string
Résultat string

getSerializer() public méthode

public getSerializer ( ) : Symfony\Component\Serializer\SerializerInterface
Résultat Symfony\Component\Serializer\SerializerInterface

handleCreateRequest() public méthode

Handles the "create" request for given resource
public handleCreateRequest ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
Résultat array

handleDeleteRequest() public méthode

Handles the "delete" request for given resource
public handleDeleteRequest ( Request $request, integer $identifier ) : array
$request Symfony\Component\HttpFoundation\Request
$identifier integer
Résultat array

handleGetRequest() public méthode

Handles the "get" request for given resource
public handleGetRequest ( Request $request, integer $identifier ) : array
$request Symfony\Component\HttpFoundation\Request
$identifier integer
Résultat array

handleListRequest() public méthode

Handles the "list" request for given resource
public handleListRequest ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
Résultat array

handleUpdateRequest() public méthode

Handles the "update" request for given resource
public handleUpdateRequest ( Request $request, integer $identifier ) : array
$request Symfony\Component\HttpFoundation\Request
$identifier integer
Résultat array