Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/en/identity-object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ that implements the required interface::
// Then pass it to the service configuration
$service = new AuthenticationService([
'identityClass' => $identityResolver,
'identifiers' => [
'Authentication.Password'
],
'authenticators' => [
'Authentication.Form'
'Authentication.Form' => [
'identifier' => 'Authentication.Password',
],
]
]);
2 changes: 2 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
colors="true"
processIsolation="false"
stopOnFailure="false"
failOnDeprecation="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
cacheDirectory=".phpunit.cache"
bootstrap="tests/bootstrap.php"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd">
Expand Down
9 changes: 4 additions & 5 deletions src/AuthenticationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,10 @@
* ```
* $service = new AuthenticationService([
* 'authenticators' => [
* 'Authentication.Form
* 'Authentication.Form' => [
* 'identifier' => 'Authentication.Password',
* ],
* ],
* 'identifiers' => [
* 'Authentication.Password'
* ]
* ]);
* ```
*
Expand Down Expand Up @@ -172,7 +171,7 @@
{
deprecationWarning(
'3.3.0',
'loadIdentifier() usage is deprecated. Directly pass Identifier to Authenticator.',
'loadIdentifier() usage is deprecated. Directly pass `\'identifier\'` config to the Authenticator.',

Check warning on line 174 in src/AuthenticationService.php

View check run for this annotation

Codecov / codecov/patch

src/AuthenticationService.php#L174

Added line #L174 was not covered by tests
);

return $this->identifiers()->load($name, $config);
Expand Down
4 changes: 2 additions & 2 deletions src/Authenticator/AuthenticatorCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
if ($identifiers->count() > 0) {
deprecationWarning(
'3.3.0',
'loadIdentifier() usage is deprecated. Directly pass Identifier to Authenticator.',
'loadIdentifier() usage is deprecated. Directly pass `\'identifier\'` config to the Authenticator.',

Check warning on line 49 in src/Authenticator/AuthenticatorCollection.php

View check run for this annotation

Codecov / codecov/patch

src/Authenticator/AuthenticatorCollection.php#L49

Added line #L49 was not covered by tests
);
}

Expand All @@ -70,7 +70,7 @@
} else {
deprecationWarning(
'3.3.0',
'loadIdentifier() usage is deprecated. Directly pass `\'identifier\'` config to Authenticator.',
'loadIdentifier() usage is deprecated. Directly pass `\'identifier\'` config to the Authenticator.',

Check warning on line 73 in src/Authenticator/AuthenticatorCollection.php

View check run for this annotation

Codecov / codecov/patch

src/Authenticator/AuthenticatorCollection.php#L73

Added line #L73 was not covered by tests
);
}

Expand Down
Loading