File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1212## Installation
1313
1414``` bash
15- composer require ' sunrise/http-router:^2.9 '
15+ composer require ' sunrise/http-router:^2.10 '
1616```
1717
1818## QuickStart
@@ -450,7 +450,7 @@ $collector->get('api.entry.read', '/api/v1/entry/{id<@uuid>}');
450450$collector->get('api.entry.read', '/api/v1/entry/{slug<@slug>}');
451451
452452// Custom patterns (available from version 2.9.0):
453- \Sunrise\Http\Router\Route ::$patterns['@id'] = '[1-9][0-9]*';
453+ \Sunrise\Http\Router\Router ::$patterns['@id'] = '[1-9][0-9]*';
454454
455455// Just use the custom pattern...
456456$collector->get('api.entry.read', '/api/v1/entry/{id<@id>}');
@@ -480,8 +480,10 @@ $collector->group(function ($collector) {
480480
481481``` php
482482use Sunrise\Http\Router\Command\RouteListCommand;
483+ use Sunrise\Http\Router\Command\RouteMatchCommand;
483484
484485new RouteListCommand($router);
486+ new RouteMatchCommand($router);
485487```
486488
487489---
You can’t perform that action at this time.
0 commit comments