We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87e59d1 + 7ec001d commit dc6fe49Copy full SHA for dc6fe49
src/ChainRouteCollection.php
@@ -66,13 +66,14 @@ public function count()
66
/**
67
* Adds a route.
68
*
69
- * @param string $name The route name
70
- * @param Route $route A Route instance
+ * @param string $name The route name
+ * @param Route $route A Route instance
71
+ * @param int $priority The route priority
72
*/
- public function add($name, Route $route)
73
+ public function add($name, Route $route, int $priority = 0)
74
{
75
$this->createInternalCollection();
- $this->routeCollection->add($name, $route);
76
+ $this->routeCollection->add($name, $route, $priority);
77
}
78
79
0 commit comments