Skip to content

Commit a2bca64

Browse files
committed
Fix deprecation warnings in tests.
Refs #712
1 parent ebaec2b commit a2bca64

File tree

8 files changed

+125
-138
lines changed

8 files changed

+125
-138
lines changed

docs/en/identity-object.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ that implements the required interface::
108108
// Then pass it to the service configuration
109109
$service = new AuthenticationService([
110110
'identityClass' => $identityResolver,
111-
'identifiers' => [
112-
'Authentication.Password'
113-
],
114111
'authenticators' => [
115-
'Authentication.Form'
112+
'Authentication.Form' => [
113+
'identifier' => 'Authentication.Password',
114+
],
116115
]
117116
]);

src/AuthenticationService.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ class AuthenticationService implements AuthenticationServiceInterface, Impersona
8989
* ```
9090
* $service = new AuthenticationService([
9191
* 'authenticators' => [
92-
* 'Authentication.Form
92+
* 'Authentication.Form' => [
93+
* 'identifier' => 'Authentication.Password',
94+
* ],
9395
* ],
94-
* 'identifiers' => [
95-
* 'Authentication.Password'
96-
* ]
9796
* ]);
9897
* ```
9998
*

src/Authenticator/AuthenticatorCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(IdentifierCollection $identifiers, array $config = [
4646
if ($identifiers->count() > 0) {
4747
deprecationWarning(
4848
'3.3.0',
49-
'loadIdentifier() usage is deprecated. Directly pass Identifier to Authenticator.',
49+
'loadIdentifier() usage is deprecated. Directly pass `\'identifier\'` config to the Authenticator.',
5050
);
5151
}
5252

@@ -70,7 +70,7 @@ protected function _create(object|string $class, string $alias, array $config):
7070
} else {
7171
deprecationWarning(
7272
'3.3.0',
73-
'loadIdentifier() usage is deprecated. Directly pass `\'identifier\'` config to Authenticator.',
73+
'loadIdentifier() usage is deprecated. Directly pass `\'identifier\'` config to the Authenticator.',
7474
);
7575
}
7676

0 commit comments

Comments
 (0)