class RequestPatternResolver (View source)

The request pattern resolver. It resolves the class name of a request pattern based on names.

Properties

protected ObjectManagerInterface $objectManager

Methods

__construct(ObjectManagerInterface $objectManager)

Constructor.

string
resolveRequestPatternClass(string $name)

Resolves the class name of a request pattern. If a valid request pattern class name is given, it is just returned.

Details

__construct(ObjectManagerInterface $objectManager)

Constructor.

Parameters

ObjectManagerInterface $objectManager

The object manager

string resolveRequestPatternClass(string $name)

Resolves the class name of a request pattern. If a valid request pattern class name is given, it is just returned.

Parameters

string $name

The (short) name of the pattern

Return Value

string

The class name of the request pattern, NULL if no class was found.

Exceptions

NoRequestPatternFoundException