Skip to content

Document UserDataProcessor data sent when no user #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2016
Merged
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
4 changes: 4 additions & 0 deletions src/Processors/UserDataProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* By default only the 'id' field from the user is attached; pass null or an
* empty array as the 'only' option to override this, or configure otherwise as
* you see fit.
*
* If no user is logged in, the data `['id' => null]` is still attached to the
* error object, to differentiate a case where no data on the current user is
* available from a case where it is known that no user is logged in.
*/
class UserDataProcessor
{
Expand Down