Property | Type | Description | |
---|---|---|---|
$addressManager | Sonata\Component\Customer\AddressManagerInterface | ||
$formFactory | Symfony\Component\Form\FormFactoryInterface |
Method | Description | |
---|---|---|
__construct ( Sonata\Component\Customer\AddressManagerInterface $addressManager, Symfony\Component\Form\FormFactoryInterface $formFactory ) | Constructor. | |
deleteAddressAction ( integer $id ) : FOS\RestBundle\View\View | Deletes an address. | |
getAddressAction ( $id ) : Sonata\Component\Customer\AddressInterface | Retrieves a specific address. | |
getAddressesAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : Sonata\DatagridBundle\Pager\PagerInterface | Returns a paginated list of addresses. | |
postAddressAction ( |
Adds an address. | |
putAddressAction ( integer $id, |
Updates an address. |
Method | Description | |
---|---|---|
getAddress ( integer $id ) : Sonata\Component\Customer\AddressInterface | Retrieves address with id $id or throws an exception if it doesn't exist. | |
handleWriteAddress ( |
Write an address, this method is used by both POST and PUT action methods. |
public __construct ( Sonata\Component\Customer\AddressManagerInterface $addressManager, Symfony\Component\Form\FormFactoryInterface $formFactory ) | ||
$addressManager | Sonata\Component\Customer\AddressManagerInterface | |
$formFactory | Symfony\Component\Form\FormFactoryInterface |
public deleteAddressAction ( integer $id ) : FOS\RestBundle\View\View | ||
$id | integer | An Address identifier |
return | FOS\RestBundle\View\View |
protected getAddress ( integer $id ) : Sonata\Component\Customer\AddressInterface | ||
$id | integer | |
return | Sonata\Component\Customer\AddressInterface |
public getAddressAction ( $id ) : Sonata\Component\Customer\AddressInterface | ||
$id | ||
return | Sonata\Component\Customer\AddressInterface |
public getAddressesAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : Sonata\DatagridBundle\Pager\PagerInterface | ||
$paramFetcher | FOS\RestBundle\Request\ParamFetcherInterface | |
return | Sonata\DatagridBundle\Pager\PagerInterface |
protected handleWriteAddress ( |
||
$request | Symfony request | |
$id | integer | null | An Address identifier |
return | FOS\RestBundle\View\View | FormInterface |
public postAddressAction ( |
||
$request | A Symfony request | |
return | Sonata\Component\Customer\AddressInterface |
public putAddressAction ( integer $id, |
||
$id | integer | An Address identifier |
$request | A Symfony request | |
return | Address |
protected AddressManagerInterface,Sonata\Component\Customer $addressManager | ||
return | Sonata\Component\Customer\AddressManagerInterface |