Skip to content

Commit f18bf50

Browse files
committed
Make adapters accepsible via authentication getter
1 parent b08ad53 commit f18bf50

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/Authentication.php

+8
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,12 @@ public function authorize(AuthorizerInterface $authorizer, AdapterInterface $ada
8282

8383
return $adapter->authenticate($user);
8484
}
85+
86+
/**
87+
* {@inheritdoc}
88+
*/
89+
public function getAdapters()
90+
{
91+
return $this->adapters;
92+
}
8593
}

src/AuthenticationInterface.php

+5
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@ public function initialize(RequestInterface $request);
3535
* @return AuthenticatedUserInterface
3636
*/
3737
public function authorize(AuthorizerInterface $authorizer, AdapterInterface $adapter, array $credentials);
38+
39+
/**
40+
* @return AdapterInterface[]
41+
*/
42+
public function getAdapters();
3843
}

0 commit comments

Comments
 (0)