Class

eZ\Publish\Core\MVC\Symfony\Matcher\AbstractMatcherFactory

abstract class AbstractMatcherFactory implements MatcherFactoryInterface

Base for MatcherFactory classes.

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

Methods

__construct(Repository $repository, array $matchConfig = array())

array|null match(View $view)

Checks if $valueObject has a usable configuration for $viewType.

Details

at line 57
public __construct(Repository $repository, array $matchConfig = array())

Parameters

Repository $repository
array $matchConfig

at line 115
public array|null match(View $view)

Checks if $valueObject has a usable configuration for $viewType.

If so, the configuration hash will be returned. $valueObject can be for example a Location or a Content object.

Parameters

View $view

Return Value

array|null The matched configuration as a hash, containing template or controller to use, or null if not matched.