From 77c7508b47d900e6276de4029b149acfaed7e914 Mon Sep 17 00:00:00 2001 From: maks feltrin Date: Thu, 14 Jan 2016 17:18:17 +0100 Subject: [PATCH 1/3] fixes typo --- doc/book/cookbook/setting-locale-without-routing-parameter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/book/cookbook/setting-locale-without-routing-parameter.md b/doc/book/cookbook/setting-locale-without-routing-parameter.md index 28b49ce3..f67d0df1 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; From 3c34713371e36815a0c71586d5f8224c7915b89c Mon Sep 17 00:00:00 2001 From: maks feltrin Date: Thu, 14 Jan 2016 17:21:47 +0100 Subject: [PATCH 2/3] remove empty line --- doc/book/cookbook/setting-locale-without-routing-parameter.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/book/cookbook/setting-locale-without-routing-parameter.md b/doc/book/cookbook/setting-locale-without-routing-parameter.md index f67d0df1..7ba29a3b 100644 --- a/doc/book/cookbook/setting-locale-without-routing-parameter.md +++ b/doc/book/cookbook/setting-locale-without-routing-parameter.md @@ -42,7 +42,6 @@ class SetLanguageMiddleware public function __invoke($request, $response, callable $next) { - $uri = $request->getUri(); $path = $uri->getPath(); From c1ff671bfba9b5c1ea3cb25d8803283c80dc78d8 Mon Sep 17 00:00:00 2001 From: maks feltrin Date: Thu, 14 Jan 2016 23:09:14 +0100 Subject: [PATCH 3/3] fixes typo --- doc/book/router/result-observers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {