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

Commit a86effa

Browse files
gszyweierophinney
authored andcommitted
Updated the Identity plugin docs
It supports both `AuthenticationService` and `AuthenticationServiceInterface`.
1 parent c19356a commit a86effa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/book/helpers/identity.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ The `Identity` helper allows retrieving the identity from the
44
`AuthenticationService`.
55

66
For the `Identity` helper to work, a `Zend\Authentication\AuthenticationService`
7-
name or alias must be defined and recognized by the `ServiceManager`.
7+
or `Zend\Authentication\AuthenticationServiceInterface` name or alias must be
8+
defined and recognized by the `ServiceManager`.
89

910
`Identity` returns the identity discovered in the `AuthenticationService`, or
1011
`null` if no identity is available.
@@ -43,3 +44,6 @@ return [
4344
],
4445
];
4546
```
47+
48+
If such service is not found, the plugin will look for a service named
49+
`Zend\Authentication\AuthenticationService` in the `ServiceManager`.

0 commit comments

Comments
 (0)