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

Commit

Permalink
Merge branch 'hotfix/45' into develop
Browse files Browse the repository at this point in the history
Forward port #45

Conflicts:
	CHANGELOG.md
  • Loading branch information
weierophinney committed Mar 5, 2019
2 parents e00827a + 9512bfa commit da22942
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ All notable changes to this project will be documented in this file, in reverse

- Nothing.

## 1.0.2 - TBD
## 1.0.2 - 2019-03-05

### Added

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

### Fixed

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

## 1.0.1 - 2018-09-28

Expand Down
2 changes: 1 addition & 1 deletion src/UserRepository/PdoDatabaseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __invoke(ContainerInterface $container) : PdoDatabase
$pdo = $container->get('config')['authentication']['pdo'] ?? null;
if (null === $pdo) {
throw new Exception\InvalidConfigException(
'PDO values are missing in user_register config'
'PDO values are missing in authentication config'
);
}
if (! isset($pdo['dsn'])) {
Expand Down
1 change: 1 addition & 0 deletions test/UserRepository/PdoDatabaseFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function testInvokeWithEmptyConfig()
$this->container->get('config')->willReturn([]);

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

Expand Down

0 comments on commit da22942

Please sign in to comment.