PHP Class Elcodi\Store\GeoBundle\Controller\AddressController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller, use trait Elcodi\Store\CoreBundle\Controller\Traits\TemplateRenderTrait
Show file Open project: elcodi/bamboo

Public Methods

Method Description
deleteAction ( integer $id, string | null $source = null ) : Response Delete address
editAction ( integer $id, Request $request, string $source ) : Response Edit an address
listAction ( ) : Response List addresses page
newAction ( Elcodi\Component\Geo\Entity\Interfaces\AddressInterface $address, Symfony\Component\Form\FormView $formView, boolean $isValid, string | null $source = null ) : Response New address

Method Details

deleteAction() public method

Delete address
public deleteAction ( integer $id, string | null $source = null ) : Response
$id integer The address id
$source string | null The form source to redirect back
return Symfony\Component\HttpFoundation\Response Response

editAction() public method

Edit an address
public editAction ( integer $id, Request $request, string $source ) : Response
$id integer The address id
$request Symfony\Component\HttpFoundation\Request The current request
$source string The form source to redirect back
return Symfony\Component\HttpFoundation\Response Response

listAction() public method

List addresses page
public listAction ( ) : Response
return Symfony\Component\HttpFoundation\Response Response

newAction() public method

New address
public newAction ( Elcodi\Component\Geo\Entity\Interfaces\AddressInterface $address, Symfony\Component\Form\FormView $formView, boolean $isValid, string | null $source = null ) : Response
$address Elcodi\Component\Geo\Entity\Interfaces\AddressInterface $address A new address entity
$formView Symfony\Component\Form\FormView The form view
$isValid boolean If the form is valid
$source string | null The form source to redirect back
return Symfony\Component\HttpFoundation\Response Response