Change the name of the local variable $router to $myRouter to match the preceding code fragment.
This commit is contained in:
parent
fef677168e
commit
84b70f3c09
|
|
@ -51,7 +51,7 @@ $myRouter->addRoute(Route::newFromUriTemplate('/things/', 'ThingCollectionHandle
|
||||||
$myRouter->addRoute(Route::newFromUriTemplate('/things/{id}', 'ThingItemHandler'));
|
$myRouter->addRoute(Route::newFromUriTemplate('/things/{id}', 'ThingItemHandler'));
|
||||||
|
|
||||||
// Determine and output the response.
|
// Determine and output the response.
|
||||||
$response = $router->getResponse();
|
$response = $myRouter->getResponse();
|
||||||
$response->respond();
|
$response->respond();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue