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

Commit 57b5c34

Browse files
committed
Merge branch 'hotfix/45'
Close #45
2 parents b29155c + 9512bfa commit 57b5c34

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5-
## 1.0.2 - TBD
5+
## 1.0.2 - 2019-03-05
66

77
### Added
88

@@ -22,7 +22,8 @@ All notable changes to this project will be documented in this file, in reverse
2222

2323
### Fixed
2424

25-
- Nothing.
25+
- [#40](https://github.com/zendframework/zend-expressive-authentication/pull/45) corrects the name of a configuration parameter name referenced when
26+
raising an exception while invoking `Zend\Expressive\Authentication\UserRepositoryPdoDatabaseFactory`.
2627

2728
## 1.0.1 - 2018-09-28
2829

src/UserRepository/PdoDatabaseFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __invoke(ContainerInterface $container) : PdoDatabase
2424
$pdo = $container->get('config')['authentication']['pdo'] ?? null;
2525
if (null === $pdo) {
2626
throw new Exception\InvalidConfigException(
27-
'PDO values are missing in user_register config'
27+
'PDO values are missing in authentication config'
2828
);
2929
}
3030
if (! isset($pdo['dsn'])) {

test/UserRepository/PdoDatabaseFactoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function testInvokeWithEmptyConfig()
4141
$this->container->get('config')->willReturn([]);
4242

4343
$this->expectException(InvalidConfigException::class);
44+
$this->expectExceptionMessage('PDO values are missing in authentication config');
4445
$pdoDatabase = ($this->factory)($this->container->reveal());
4546
}
4647

0 commit comments

Comments
 (0)