diff --git a/doc/book/cookbook/setting-locale-without-routing-parameter.md b/doc/book/cookbook/setting-locale-without-routing-parameter.md index 28b49ce3..7ba29a3b 100644 --- a/doc/book/cookbook/setting-locale-without-routing-parameter.md +++ b/doc/book/cookbook/setting-locale-without-routing-parameter.md @@ -23,7 +23,7 @@ from the request URI's path. If if doesn't find one, it sets a default. If it does find one, it uses the language to setup the locale. It also: - amends the request with a truncated path (removing the language segment). -- adds the langauge segment as the base path of the `UrlHelper`. +- adds the language segment as the base path of the `UrlHelper`. ```php namespace Application\I18n; @@ -42,7 +42,6 @@ class SetLanguageMiddleware public function __invoke($request, $response, callable $next) { - $uri = $request->getUri(); $path = $uri->getPath(); diff --git a/doc/book/router/result-observers.md b/doc/book/router/result-observers.md index 8dd2e1b0..d60bd7af 100644 --- a/doc/book/router/result-observers.md +++ b/doc/book/router/result-observers.md @@ -71,7 +71,7 @@ when invoked, generate a URI. ```php use Zend\Expressive\Router\RouterInterface; use Zend\Expressive\Router\RouteResult; -use Zend\Expressive\ROuter\RouteResultObserverInterface; +use Zend\Expressive\Router\RouteResultObserverInterface; class UriGenerator implements RouteResultObserverInterface {