eZPublishCommunityProject  2013.5
eZ\Publish\Core\MVC\Symfony\View\Provider\Configured Class Reference

Base for View Providers. More...

+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\View\Provider\Configured:

Public Member Functions

 __construct (Repository $repository, array $matchConfig)
 

Protected Member Functions

 getMatcher ($matcherIdentifier)
 Returns the matcher object. More...
 

Protected Attributes

 $matchConfig
 
 $matchers
 
 $repository
 

Detailed Description

Base for View Providers.

Implementors can define MATCHER_RELATIVE_NAMESPACE constant. If so, getMatcher() will return instances of objects relative to this namespace if $matcherIdentifier argument doesn't begin with a '\' (FQ class name).

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Symfony\View\Provider\Configured::__construct ( Repository  $repository,
array  $matchConfig 
)
Parameters
\eZ\Publish\API\Repository\Repository$repository
array$matchConfig

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\View\Provider\Configured::getMatcher (   $matcherIdentifier)
protected

Returns the matcher object.

Parameters
string$matcherIdentifierThe matcher class. If it begins with a '\' it means it's a FQ class name, otherwise it is relative to static::MATCHER_RELATIVE_NAMESPACE namespace (if available).
Exceptions
\InvalidArgumentException
Returns

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\View\Provider\Configured::$matchConfig
protected
eZ\Publish\Core\MVC\Symfony\View\Provider\Configured::$matchers
protected
eZ\Publish\Core\MVC\Symfony\View\Provider\Configured::$repository
protected

The documentation for this class was generated from the following file: