Skip to content

Commit 3a82558

Browse files
committed
Fixed routing example in readme
1 parent 9c34808 commit 3a82558

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ the [library](https://github.com/nikic/FastRoute) of Nikita Popov, because of it
145145
more about it [in his blog](http://nikic.github.io/2014/02/18/Fast-request-routing-using-regular-expressions.html).
146146

147147
```php
148-
$router = FastRoute\dispatcher(function(FastRoute\RouteCollector $r) {
148+
$router = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) {
149149
$r->addRoute("GET", "/me", function (RequestInterface $request, ResponseInterface $response) {
150150
$response->setContent("Welcome to the real world!");
151151
});

0 commit comments

Comments
 (0)