PHP Класс WellCommerce\Bundle\CoreBundle\Controller\AbstractController

Автор: Adam Piotrowski ([email protected])
Наследование: extends WellCommerce\Bundle\CoreBundle\DependencyInjection\AbstractContainerAware, implements ControllerInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface $manager, WellCommerce\Component\Form\FormBuilderInterface $formBuilder = null ) AbstractController constructor.

Защищенные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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 createFormDefaultJsonResponse ( WellCommerce\Component\Form\Elements\FormInterface $form ) : Symfony\Component\HttpFoundation\JsonResponse
$form WellCommerce\Component\Form\Elements\FormInterface
Результат Symfony\Component\HttpFoundation\JsonResponse

displayTemplate() защищенный Метод

protected displayTemplate ( string $templateName, array $templateVars = [] ) : Response
$templateName string
$templateVars array
Результат Symfony\Component\HttpFoundation\Response

getForm() защищенный Метод

protected getForm ( $resource, array $config = [] ) : WellCommerce\Component\Form\Elements\FormInterface
$config array
Результат WellCommerce\Component\Form\Elements\FormInterface

getFormBuilder() защищенный Метод

protected getFormBuilder ( )

getManager() защищенный Метод

protected getManager ( )

getRedirectToActionUrl() защищенный Метод

protected getRedirectToActionUrl ( string $actionName = 'index', array $params = [] ) : string
$actionName string
$params array
Результат string

jsonResponse() защищенный Метод

protected jsonResponse ( array $content ) : Symfony\Component\HttpFoundation\JsonResponse
$content array
Результат Symfony\Component\HttpFoundation\JsonResponse

redirectResponse() защищенный Метод

protected redirectResponse ( string $url, integer $status = RedirectResponse::HTTP_FOUND ) : RedirectResponse
$url string
$status integer
Результат Symfony\Component\HttpFoundation\RedirectResponse

redirectToAction() защищенный Метод

protected redirectToAction ( string $actionName = 'index', array $params = [] ) : RedirectResponse
$actionName string
$params array
Результат Symfony\Component\HttpFoundation\RedirectResponse

redirectToRoute() защищенный Метод

protected redirectToRoute ( string $routeName, array $routeParams = [] ) : RedirectResponse
$routeName string
$routeParams array
Результат Symfony\Component\HttpFoundation\RedirectResponse

renderView() защищенный Метод

protected renderView ( string $view, array $parameters = [] ) : string
$view string
$parameters array
Результат string