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

Conversation

weierophinney
Copy link
Member

This patch incorporates feedback provided on #14; I was unable to push to the author's repository, so I am instead opening a new pull request.

The patch incorporates all changes in #14, plus some changes recommended and/or required on review.

What the patch accomplishes is the ability for a Zend\Authentication\Validator\Authentication to use the authentication adapter in the composed AuthenticationService instance when:

  • no adapter is present in the validator
  • the adapter in the authentication service is a ValidatableAdapterInterface instance

This simplifies usage, as the consumer of the validator no longer needs direct access to the authentication adapter.

anton-kotik and others added 8 commits April 12, 2018 14:43
- Uses ternary operator to set values instead of if/else.
- Extracts logic for retrieving adapter from authentication service to
  its own method, and then uses ternary operator to assign adapter.
- Refactors some conditional statements to move nested logic into the
  main workflow.
- license docblock
- Adds docblock to authenticate() method)
- makes property private
@weierophinney weierophinney force-pushed the feature/14-authentication-validator-consume-service branch from f633cfc to eca04ec Compare April 12, 2018 20:37
@weierophinney weierophinney merged commit eca04ec into zendframework:develop Apr 12, 2018
weierophinney added a commit that referenced this pull request Apr 12, 2018
@weierophinney weierophinney deleted the feature/14-authentication-validator-consume-service branch April 12, 2018 21:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants