Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 09888b1

Browse files
committed
docs: Include example configuration in CHANGELOG entry for #41
1 parent 800167e commit 09888b1

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,24 @@ All notable changes to this project will be documented in this file, in reverse
66

77
### Added
88

9-
- [#41](https://github.com/zendframework/zend-expressive-authentication/pull/46) Allow to provide PDO service name
10-
instead of PDO connection parameters.
9+
- [#41](https://github.com/zendframework/zend-expressive-authentication/pull/46) allows users to provide an application-specific PDO service name to use
10+
with the `PdoDatabase` user repository implementation, instead of connection
11+
parameters. This allows re-use of an existing PDO connection. To configure it:
12+
13+
```php
14+
return [
15+
'authentication' => [
16+
'pdo' => [
17+
'service' => 'name-of-existing-PDO-service',
18+
'table' => 'name-of-table-to-use',
19+
'field' => [
20+
'identity' => 'name-of-field-containing-identity',
21+
'password' => 'name-of-field-containing-password-hash',
22+
],
23+
],
24+
],
25+
];
26+
```
1127

1228
### Changed
1329

0 commit comments

Comments
 (0)