src/AuthenticationService.php
public function sign($username, $password, Adapter\AdapterInterface $adapter = null, Request $request = null)
    {
        /** @var Adapter\AdapterInterface $adapter */
        /** @noinspection CallableParameterUseCaseInTypeContextInspection */
        $adapter = $adapter ?: $this->getAdapter();

        $adapter->setIdentity($username);
        $adapter->setCredential($password);

        return $this->authenticate($adapter, $request);
    }
public function sign($username, $password, Adapter\AdapterInterface $adapter = null, Request $request = null)
    {
        /** @var Adapter\AdapterInterface $adapter */
        /** @noinspection CallableParameterUseCaseInTypeContextInspection */
        $adapter = $adapter ?: $this->getAdapter();

        $adapter->setIdentity($username);
        $adapter->setCredential($password);

        return $this->authenticate($adapter, $request);
    }
public function sign ( $ username , $ password , Adapter \ AdapterInterface $ adapter = null , Request $ request = null ) { /** @var Adapter\AdapterInterface $adapter */ /** @noinspection CallableParameterUseCaseInTypeContextInspection */ $ adapter = $ adapter ? : $ this -> getAdapter ( ) ; $ adapter -> setIdentity ( $ username ) ; $ adapter -> setCredential ( $ password ) ; return $ this -> authenticate ( $ adapter , $ request ) ; }
Sign-in and provides an authentication result.

@param string                        $username
@param string                        $password
@param Adapter\AdapterInterface|null $adapter
@param Request                       $request

@return AuthenticationResult
@throws \Xloit\Bridge\Zend\Authentication\Exception\AuthenticationStopException
@throws \Xloit\Bridge\Zend\Authentication\Exception\RuntimeException
@throws \Zend\Authentication\Adapter\Exception\ExceptionInterface
@throws \Zend\Authentication\Exception\RuntimeException
@throws \Zend\Authentication\Exception\ExceptionInterface
@throws \Zend\EventManager\Exception\InvalidArgumentException
Sign - in and provides an authentication result .