merged branch elnur/chain-user-provider-getter (PR #7077)

This PR was merged into the master branch.

Discussion
----------

[2.3] [Security] Add a getter for providers to the ChainUserProvider class

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes

I've got a use case where I need to check if any of the chained user providers implement a particular interface. This getter would really help with that.

Commits
-------

0a82d73 Add a getter for providers to the ChainUserProvider class
This commit is contained in:
Fabien Potencier 2013-04-09 16:17:51 +02:00
commit b265c9ee0a
1 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,14 @@ class ChainUserProvider implements UserProviderInterface
$this->providers = $providers;
}
/**
* @return array
*/
public function getProviders()
{
return $this->providers;
}
/**
* {@inheritDoc}
*/