StaticPrefixCollection

class StaticPrefixCollection

Prefix tree of routes preserving routes order.

Methods

__construct($prefix = '')
getPrefix()
mixed[]|StaticPrefixCollection[] getItems()
addRoute(string $prefix, mixed $route)

Adds a route to a group.

optimizeGroups()

Optimizes the tree by inlining items from groups with less than 3 items.

Details

__construct($prefix = '')

Parameters

$prefix

getPrefix()

mixed[]|StaticPrefixCollection[] getItems()

Return Value

mixed[]|StaticPrefixCollection[]

addRoute(string $prefix, mixed $route)

Adds a route to a group.

Parameters

string $prefix
mixed $route

optimizeGroups()

Optimizes the tree by inlining items from groups with less than 3 items.

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.4/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.html