PHP Class WellCommerce\Bundle\CoreBundle\Controller\AbstractController

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\DependencyInjection\AbstractContainerAware, implements ControllerInterface
ファイルを表示 Open project: wellcommerce/wellcommerce Class Usage Examples

Public Methods

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

Protected Methods

Method 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 method

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 method

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

displayTemplate() protected method

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

getForm() protected method

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

getFormBuilder() protected method

protected getFormBuilder ( )

getManager() protected method

protected getManager ( )

getRedirectToActionUrl() protected method

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

jsonResponse() protected method

protected jsonResponse ( array $content ) : Symfony\Component\HttpFoundation\JsonResponse
$content array
return Symfony\Component\HttpFoundation\JsonResponse

redirectResponse() protected method

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

redirectToAction() protected method

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

redirectToRoute() protected method

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

renderView() protected method

protected renderView ( string $view, array $parameters = [] ) : string
$view string
$parameters array
return string