Skip to content

Commit fdce4d2

Browse files
committed
Changed all optional_fields for optionalFields
1 parent df91a7b commit fdce4d2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Authenticator/EnvironmentAuthenticator.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ class EnvironmentAuthenticator extends AbstractAuthenticator
3333
* - `loginUrl` Login URL or an array of URLs.
3434
* - `urlChecker` Url checker config.
3535
* - `fields` array of required fields to get from the environment
36-
* - `optional_fields` array of optional fields to get from the environment
36+
* - `optionalFields` array of optional fields to get from the environment
3737
*
3838
* @var array
3939
*/
4040
protected $_defaultConfig = [
4141
'loginUrl' => null,
4242
'urlChecker' => 'Authentication.Default',
4343
'fields' => [],
44-
'optional_fields' => [],
44+
'optionalFields' => [],
4545
];
4646

4747
/**
@@ -73,14 +73,14 @@ protected function _getData(ServerRequestInterface $request): ?array
7373
}
7474

7575
/**
76-
* Get values from the environment variables configured by `optional_fields`.
76+
* Get values from the environment variables configured by `optionalFields`.
7777
*
7878
* @param \Psr\Http\Message\ServerRequestInterface $request The request that contains login information.
79-
* @return array server params defined by optional_fields.
79+
* @return array server params defined by optionalFields.
8080
*/
8181
protected function _getOptionalData(ServerRequestInterface $request): array
8282
{
83-
$fields = $this->_config['optional_fields'];
83+
$fields = $this->_config['optionalFields'];
8484
$params = $request->getServerParams();
8585

8686
$data = [];

tests/TestCase/Authenticator/EnvironmentAuthenticatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function testOptionalFields()
211211
'USER_ID',
212212
'SOME_ATTRIBUTE',
213213
],
214-
'optional_fields' => [
214+
'optionalFields' => [
215215
'OPTIONAL_FIELD',
216216
],
217217
]);

0 commit comments

Comments
 (0)