Skip to content

Commit 2cff848

Browse files
committed
update README.md
1 parent a98685f commit 2cff848

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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
482482
use Sunrise\Http\Router\Command\RouteListCommand;
483+
use Sunrise\Http\Router\Command\RouteMatchCommand;
483484

484485
new RouteListCommand($router);
486+
new RouteMatchCommand($router);
485487
```
486488

487489
---

0 commit comments

Comments
 (0)