class TaxRuleController extends AbstractCrudApiController

Class TaxRuleController

Traits

Symfony\Component\DependencyInjection\ContainerAwareTrait

Constants

EMPTY_FORM_NAME

CONTROLLER_TYPE

Methods

EventDispatcher
getDispatcher()

Return the event dispatcher,

getTranslator()

return the Translator

getMailer()

return an instance of \Swift_Mailer with good Transporter configured.

createForm($name, $type = 'form', array $data = array(), array $options = array())

No description

ContainerInterface
getContainer()

No description

string
getControllerType()

No description

setApiUser( Api $apiUser)

No description

getApiUser()

No description

__construct()

No description

Response
getAction($entityId)

No description

deleteAction($entityId)

No description

hydrateUpdateForm( FormEvent $event)

No description

Details

in BaseController at line 128
EventDispatcher getDispatcher()

Return the event dispatcher,

Return Value

EventDispatcher

in BaseController at line 138
Translator getTranslator()

return the Translator

Return Value

Translator

in BaseController at line 545
MailerFactory getMailer()

return an instance of \Swift_Mailer with good Transporter configured.

Return Value

MailerFactory

in BaseApiController at line 106
BaseForm createForm($name, $type = 'form', array $data = array(), array $options = array())

Parameters

$name
$type
array $data
array $options

Return Value

BaseForm This method builds a thelia form with its name

in BaseController at line 589
ContainerInterface getContainer()

Return Value

ContainerInterface

in BaseApiController at line 121
string getControllerType()

Return Value

string

in BaseApiController at line 46
setApiUser( Api $apiUser)

Parameters

Api $apiUser

in BaseApiController at line 51
getApiUser()

at line 36
__construct()

JsonResponse listAction()

Return Value

JsonResponse The method provides the "list" feed for an entity.

Response getAction($entityId)

Parameters

$entityId

Return Value

Response This method provides the "GET" feed for an entity, you can define a route like this:

Thelia:Api\MyEntity:get \d+

JsonResponse createAction()

Return Value

JsonResponse This feed creates your entity.

JsonResponse updateAction()

Return Value

JsonResponse Generic action to update an entity

JsonResponse|Response deleteAction($entityId)

Parameters

$entityId

Return Value

JsonResponse|Response generic feed for deleting an entity

at line 176
hydrateUpdateForm( FormEvent $event)

Parameters

FormEvent $event This method in called on your update form FormEvents::PRE_SUBMIT event.

You can treat the given form, rewrite some data ...