From 82121582f43ecfeecce391c732bb5421d14f02b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Bru=CC=88ckner?= Date: Sat, 3 Apr 2021 07:57:26 +0200 Subject: [PATCH 1/2] Fixes #38 - Missing dependency on laminas-http MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frank Brückner --- docs/book/validator.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/book/validator.md b/docs/book/validator.md index c461cc88..c0e389ff 100644 --- a/docs/book/validator.md +++ b/docs/book/validator.md @@ -27,6 +27,14 @@ against the originally stored `$_SERVER['REMOTE_ADDR']` variable. Validation will fail in the event that this does not match and throws an exception in `Laminas\Session\SessionManager` after `session_start()` has been called. +> ### Installation Requirements +> +> The validation of the IP address depends on the [laminas-http](https://docs.laminas.dev/laminas-http/) component, so be sure to have it installed before getting started: +> +> ```bash +> $ composer require laminas/laminas-http +> ``` + ### Basic Usage ```php From a09cf5078e1eb6f450909413b786a4f7ed6483f5 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Wed, 30 Jun 2021 10:07:45 -0500 Subject: [PATCH 2/2] qa: fix documentation linting errors Signed-off-by: Matthew Weier O'Phinney --- .../usage-in-a-laminas-mvc-application.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/book/application-integration/usage-in-a-laminas-mvc-application.md b/docs/book/application-integration/usage-in-a-laminas-mvc-application.md index 22e00fdb..d9140b89 100644 --- a/docs/book/application-integration/usage-in-a-laminas-mvc-application.md +++ b/docs/book/application-integration/usage-in-a-laminas-mvc-application.md @@ -46,7 +46,7 @@ return [ > The configuration for the session itself is optional, but the > [factory `Laminas\Session\Config\SessionConfig`](../config.md#service-manager-factory), > which is registered for configuration data, expects an array under the key -> `session_config`. +> `session_config`. > > A minimum configuration is: > @@ -79,10 +79,11 @@ class AlbumController extends AbstractActionController ``` To [register the controller](https://docs.laminas.dev/laminas-mvc/quick-start/#create-a-route) -for the application, extend the configuration of the module. +for the application, extend the configuration of the module. Add the following lines to the module configuration file, e.g. `module/Album/config/module.config.php`: +

 namespace Album;
 
@@ -128,4 +129,3 @@ public function addAction()
     ];
 }
 ```
-