Skip to content

Commit

Permalink
Merge pull request #39 from froschdesign/hotfix/38
Browse files Browse the repository at this point in the history
Fixes #38 - Missing dependency on laminas-http
  • Loading branch information
weierophinney committed Jun 30, 2021
2 parents f519167 + a09cf50 commit 442588d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
>
Expand Down Expand Up @@ -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`:

<!-- markdownlint-disable MD033 -->
<pre class="language-php" data-line="8-9"><code>
namespace Album;

Expand Down Expand Up @@ -128,4 +129,3 @@ public function addAction()
];
}
```

8 changes: 8 additions & 0 deletions docs/book/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 442588d

Please sign in to comment.