StaticPrefixCollection
class StaticPrefixCollection
Prefix tree of routes preserving routes order.
Methods
__construct(string $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(string $prefix = '')
Parameters
string | $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/4.0/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.html