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

Commit 7b56850

Browse files
committed
Moves default configuration to ConfigProvider
Basically, there is none, so it's just documentation.
1 parent f047f02 commit 7b56850

File tree

2 files changed

+16
-39
lines changed

2 files changed

+16
-39
lines changed

config/authentication.php

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/ConfigProvider.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,22 @@ class ConfigProvider
1515
public function __invoke() : array
1616
{
1717
return [
18-
'dependencies' => $this->getDependencies(),
19-
'authentication' => include __DIR__ . '/../config/authentication.php'
18+
'authentication' => $this->getAuthenticationConfig(),
19+
'dependencies' => $this->getDependencies(),
20+
];
21+
}
22+
23+
public function getAuthenticationConfig() : array
24+
{
25+
return [
26+
/* Values will depend on user repository and/or adapter.
27+
*
28+
* Example: using htpasswd UserRepositoryInterface implementation:
29+
*
30+
* 'user_register' => [
31+
* 'htpasswd' => 'insert the path to htpasswd file'
32+
* ]
33+
*/
2034
];
2135
}
2236

0 commit comments

Comments
 (0)