StaticPrefixCollection
class StaticPrefixCollection
Prefix tree of routes preserving routes order.
Methods
| __construct(string $prefix = '/') | ||
| string | getPrefix() | |
| array | getRoutes() | |
| addRoute(string $prefix, $route) Adds a route to a group. | ||
| RouteCollection | populateCollection(RouteCollection $routes) Linearizes back a set of nested routes into a collection. | |
| static | handleError($type, $msg) |
Details
__construct(string $prefix = '/')
Parameters
| string | $prefix |
string getPrefix()
Return Value
| string |
array getRoutes()
Return Value
| array |
addRoute(string $prefix, $route)
Adds a route to a group.
Parameters
| string | $prefix | |
| $route |
RouteCollection populateCollection(RouteCollection $routes)
Linearizes back a set of nested routes into a collection.
Parameters
| RouteCollection | $routes |
Return Value
| RouteCollection |
static handleError($type, $msg)
Parameters
| $type | ||
| $msg |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.html