src/Identifier/IdentifierCollection.php
public function identify(array $credentials)
    {
        /** @var \Authentication\Identifier\IdentifierInterface $identifier */
        foreach ($this->_loaded as $name => $identifier) {
            $result = $identifier->identify($credentials);
            if ($result) {
                return $result;
            }
            $this->_errors[$name] = $identifier->getErrors();
        }

        return null;
    }
public function identify(array $credentials)
    {
        /** @var \Authentication\Identifier\IdentifierInterface $identifier */
        foreach ($this->_loaded as $name => $identifier) {
            $result = $identifier->identify($credentials);
            if ($result) {
                return $result;
            }
            $this->_errors[$name] = $identifier->getErrors();
        }

        return null;
    }
public function identify ( array $ credentials ) { /** @var \Authentication\Identifier\IdentifierInterface $identifier */ foreach ( $ this -> _loaded as $ name => $ identifier ) { $ result = $ identifier -> identify ( $ credentials ) ; if ( $ result ) { return $ result ; } $ this -> _errors [ $ name ] = $ identifier -> getErrors ( ) ; } return null ; }
Identifies an user or service by the passed credentials

@param array $credentials Authentication credentials
@return \ArrayAccess|array|null
Identifies an user or service by the passed credentials