PHP Class eZ\Publish\Core\MVC\Symfony\Controller\Controller

Inheritance: implements Symfony\Component\DependencyInjection\ContainerAwareInterface, use trait Symfony\Component\DependencyInjection\ContainerAwareTrait
Exibir arquivo Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
getConfigResolver ( ) : eZ\Publish\Core\MVC\ConfigResolverInterface
getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
getLogger ( ) : Psr\Log\LoggerInterface | null
getParameter ( string $parameterName, mixed $defaultValue = null ) : mixed Returns value for $parameterName and fallbacks to $defaultValue if not defined.
getRepository ( ) : eZ\Publish\API\Repository\Repository
getRequest ( ) : Request
getTemplateEngine ( ) : Symfony\Component\Templating\EngineInterface
hasParameter ( string $parameterName ) : boolean Checks if $parameterName is defined.
isGranted ( Attribute $attribute ) : boolean Checks if current user has granted access to provided attribute.
render ( string $view, array $parameters = [], Response $response = null ) : Response Renders a view.

Method Details

getConfigResolver() public method

public getConfigResolver ( ) : eZ\Publish\Core\MVC\ConfigResolverInterface
return eZ\Publish\Core\MVC\ConfigResolverInterface

getEventDispatcher() public method

public getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
return Symfony\Component\EventDispatcher\EventDispatcherInterface

getLogger() public method

public getLogger ( ) : Psr\Log\LoggerInterface | null
return Psr\Log\LoggerInterface | null

getParameter() public method

Returns value for $parameterName and fallbacks to $defaultValue if not defined.
public getParameter ( string $parameterName, mixed $defaultValue = null ) : mixed
$parameterName string
$defaultValue mixed
return mixed

getRepository() public method

public getRepository ( ) : eZ\Publish\API\Repository\Repository
return eZ\Publish\API\Repository\Repository

getRequest() public method

public getRequest ( ) : Request
return Symfony\Component\HttpFoundation\Request

getTemplateEngine() public method

public getTemplateEngine ( ) : Symfony\Component\Templating\EngineInterface
return Symfony\Component\Templating\EngineInterface

hasParameter() public method

Checks if $parameterName is defined.
public hasParameter ( string $parameterName ) : boolean
$parameterName string
return boolean

isGranted() public method

Checks if current user has granted access to provided attribute.
public isGranted ( Attribute $attribute ) : boolean
$attribute eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute
return boolean

render() public method

Renders a view.
public render ( string $view, array $parameters = [], Response $response = null ) : Response
$view string The view name
$parameters array An array of parameters to pass to the view
$response Symfony\Component\HttpFoundation\Response
return Symfony\Component\HttpFoundation\Response