Beta version

class NodeRouter extends Router implements VersatileGeneratorInterface

Methods

__construct(EntityManager $em, ThemeResolver $themeResolver, array $options = array(), RequestContext $context = null, LoggerInterface $logger = null, Stopwatch $stopwatch = null, bool $preview = false)

NodeRouter constructor.

getRouteCollection()

[email protected]}

CacheProvider
setNodeSourceUrlCacheProvider(CacheProvider $nodeSourceUrlCacheProvider)

No description

UrlMatcherInterface
getMatcher()

Gets the UrlMatcher instance associated with this Router.

null
getGenerator()

No generator for a node router.

bool
supports(mixed $name)

Whether this generator supports the supplied $name.

string
getRouteDebugMessage(mixed $name, array $parameters = array())

Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages

generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)

[email protected]}

Details

at line 76
__construct(EntityManager $em, ThemeResolver $themeResolver, array $options = array(), RequestContext $context = null, LoggerInterface $logger = null, Stopwatch $stopwatch = null, bool $preview = false)

NodeRouter constructor.

Parameters

EntityManager $em
ThemeResolver $themeResolver
array $options
RequestContext $context
LoggerInterface $logger
Stopwatch $stopwatch
bool $preview

at line 97
getRouteCollection()

[email protected]}

at line 105
CacheProvider getNodeSourceUrlCacheProvider()

Return Value

CacheProvider

at line 113
setNodeSourceUrlCacheProvider(CacheProvider $nodeSourceUrlCacheProvider)

Parameters

CacheProvider $nodeSourceUrlCacheProvider

at line 123
UrlMatcherInterface getMatcher()

Gets the UrlMatcher instance associated with this Router.

Return Value

UrlMatcherInterface A UrlMatcherInterface instance

at line 143
null getGenerator()

No generator for a node router.

Return Value

null

at line 159
bool supports(mixed $name)

Whether this generator supports the supplied $name.

This check does not need to look if the specific instance can be resolved to a route, only whether the router can generate routes from objects of this class.

Parameters

mixed $name The route "name" which may also be an object or anything

Return Value

bool

at line 174
string getRouteDebugMessage(mixed $name, array $parameters = array())

Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages

Parameters

mixed $name
array $parameters which should contain a content field containing a RouteReferrersReadInterface object

Return Value

string

at line 185
generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)

[email protected]}

Parameters

$name
$parameters
$referenceType