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

Use AuthenticationServiceInterface as type #6080

Merged
merged 2 commits into from
Apr 4, 2014
Merged

Use AuthenticationServiceInterface as type #6080

merged 2 commits into from
Apr 4, 2014

Conversation

JustInVTime
Copy link

No description provided.

@danizord
Copy link
Contributor

danizord commented Apr 2, 2014

👍

@@ -48,7 +48,7 @@ public function setAuthenticationService(AuthenticationService $authenticationSe
*/
public function __invoke()
{
if (!$this->authenticationService instanceof AuthenticationService) {
if (!$this->authenticationService instanceof AuthenticationServiceInterface) {
throw new Exception\RuntimeException('No AuthenticationService instance provided');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No AuthenticationServiceInterface instance provided 😄

@Ocramius Ocramius self-assigned this Apr 2, 2014
@Ocramius Ocramius added this to the 2.4.0 milestone Apr 2, 2014
@Ocramius
Copy link
Member

Ocramius commented Apr 2, 2014

Marked as BC break, as the API of the Zend\Authentication\AuthenticationServiceInterface is a subset of Zend\Authentication\AuthenticationService

@JustInVTime
Copy link
Author

@Ocramius Fair enough, would that be a problem for 2.4.0?

@Ocramius
Copy link
Member

Ocramius commented Apr 3, 2014

@JustInVTime no, the change is ok, but it can't land in 2.3.x

Maks3w added a commit that referenced this pull request Apr 4, 2014
…terface

Use AuthenticationServiceInterface as type
@Maks3w Maks3w merged commit 7912cdf into zendframework:develop Apr 4, 2014
@Ocramius Ocramius assigned Maks3w and unassigned Ocramius Apr 4, 2014
@JustInVTime JustInVTime deleted the useAuthenticationServiceInterface branch April 4, 2014 08:07
@danizord
Copy link
Contributor

danizord commented Apr 4, 2014

This patch should be applied to Zend\Authentication\View\Helper\Identity as well.

gianarb pushed a commit to zendframework/zend-view that referenced this pull request May 15, 2015
…/useAuthenticationServiceInterface

Use AuthenticationServiceInterface as type
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants