PHP Class WellCommerce\Bundle\CoreBundle\Controller\AbstractController

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\DependencyInjection\AbstractContainerAware, implements ControllerInterface
Afficher le fichier Open project: wellcommerce/wellcommerce Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $manager, WellCommerce\Component\Form\FormBuilderInterface $formBuilder = null ) AbstractController constructor.

Méthodes protégées

Méthode Description
createFormDefaultJsonResponse ( WellCommerce\Component\Form\Elements\FormInterface $form ) : Symfony\Component\HttpFoundation\JsonResponse
displayTemplate ( string $templateName, array $templateVars = [] ) : Response
getForm ( $resource, array $config = [] ) : WellCommerce\Component\Form\Elements\FormInterface
getFormBuilder ( )
getManager ( )
getRedirectToActionUrl ( string $actionName = 'index', array $params = [] ) : string
jsonResponse ( array $content ) : Symfony\Component\HttpFoundation\JsonResponse
redirectResponse ( string $url, integer $status = RedirectResponse::HTTP_FOUND ) : RedirectResponse
redirectToAction ( string $actionName = 'index', array $params = [] ) : RedirectResponse
redirectToRoute ( string $routeName, array $routeParams = [] ) : RedirectResponse
renderView ( string $view, array $parameters = [] ) : string

Method Details

__construct() public méthode

AbstractController constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $manager, WellCommerce\Component\Form\FormBuilderInterface $formBuilder = null )
$manager WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface
$formBuilder WellCommerce\Component\Form\FormBuilderInterface

createFormDefaultJsonResponse() protected méthode

protected createFormDefaultJsonResponse ( WellCommerce\Component\Form\Elements\FormInterface $form ) : Symfony\Component\HttpFoundation\JsonResponse
$form WellCommerce\Component\Form\Elements\FormInterface
Résultat Symfony\Component\HttpFoundation\JsonResponse

displayTemplate() protected méthode

protected displayTemplate ( string $templateName, array $templateVars = [] ) : Response
$templateName string
$templateVars array
Résultat Symfony\Component\HttpFoundation\Response

getForm() protected méthode

protected getForm ( $resource, array $config = [] ) : WellCommerce\Component\Form\Elements\FormInterface
$config array
Résultat WellCommerce\Component\Form\Elements\FormInterface

getFormBuilder() protected méthode

protected getFormBuilder ( )

getManager() protected méthode

protected getManager ( )

getRedirectToActionUrl() protected méthode

protected getRedirectToActionUrl ( string $actionName = 'index', array $params = [] ) : string
$actionName string
$params array
Résultat string

jsonResponse() protected méthode

protected jsonResponse ( array $content ) : Symfony\Component\HttpFoundation\JsonResponse
$content array
Résultat Symfony\Component\HttpFoundation\JsonResponse

redirectResponse() protected méthode

protected redirectResponse ( string $url, integer $status = RedirectResponse::HTTP_FOUND ) : RedirectResponse
$url string
$status integer
Résultat Symfony\Component\HttpFoundation\RedirectResponse

redirectToAction() protected méthode

protected redirectToAction ( string $actionName = 'index', array $params = [] ) : RedirectResponse
$actionName string
$params array
Résultat Symfony\Component\HttpFoundation\RedirectResponse

redirectToRoute() protected méthode

protected redirectToRoute ( string $routeName, array $routeParams = [] ) : RedirectResponse
$routeName string
$routeParams array
Résultat Symfony\Component\HttpFoundation\RedirectResponse

renderView() protected méthode

protected renderView ( string $view, array $parameters = [] ) : string
$view string
$parameters array
Résultat string