Class

eZ\Publish\Core\MVC\Symfony\Controller\Controller

abstract class Controller implements ContainerAwareInterface

Methods

mixed getParameter(string $parameterName, mixed $defaultValue = null)

Returns value for $parameterName and fallbacks to $defaultValue if not defined.

bool hasParameter(string $parameterName)

Checks if $parameterName is defined.

ConfigResolverInterface getConfigResolver()

Response render(string $view, array $parameters = array(), Response $response = null)

Renders a view.

EngineInterface getTemplateEngine()

LoggerInterface|null getLogger()

Repository getRepository()

Request getRequest()

EventDispatcherInterface getEventDispatcher()

bool isGranted(Attribute $attribute)

Checks if current user has granted access to provided attribute.

Details

at line 28
public mixed getParameter(string $parameterName, mixed $defaultValue = null)

Returns value for $parameterName and fallbacks to $defaultValue if not defined.

Parameters

string $parameterName
mixed $defaultValue

Return Value

mixed

at line 44
public bool hasParameter(string $parameterName)

Checks if $parameterName is defined.

Parameters

string $parameterName

Return Value

bool

at line 52
public ConfigResolverInterface getConfigResolver()

at line 66
public Response render(string $view, array $parameters = array(), Response $response = null)

Renders a view.

Parameters

string $view The view name
array $parameters An array of parameters to pass to the view
Response $response

Return Value

Response

at line 80
public EngineInterface getTemplateEngine()

Return Value

EngineInterface

at line 88
public LoggerInterface|null getLogger()

Return Value

LoggerInterface|null

at line 96
public Repository getRepository()

Return Value

Repository

at line 104
public Request getRequest()

Return Value

Request

at line 112
public EventDispatcherInterface getEventDispatcher()

Return Value

EventDispatcherInterface

at line 124
public bool isGranted(Attribute $attribute)

Checks if current user has granted access to provided attribute.

Parameters

Attribute $attribute

Return Value

bool