src/Authenticator/AuthenticatorCollection.php
protected function _create($className, $alias, $config)
    {
        $authenticator = new $className($this->_identifiers, $config);
        if (!($authenticator instanceof AuthenticatorInterface)) {
            throw new RuntimeException(sprintf(
                'Authenticator class `%s` must implement \Auth\Authentication\AuthenticatorInterface',
                $className
            ));
        }

        return $authenticator;
    }
protected function _create($className, $alias, $config)
    {
        $authenticator = new $className($this->_identifiers, $config);
        if (!($authenticator instanceof AuthenticatorInterface)) {
            throw new RuntimeException(sprintf(
                'Authenticator class `%s` must implement \Auth\Authentication\AuthenticatorInterface',
                $className
            ));
        }

        return $authenticator;
    }
protected function _create ( $ className , $ alias , $ config ) { $ authenticator = new $ className ( $ this -> _identifiers , $ config ) ; if ( ! ( $ authenticator instanceof AuthenticatorInterface ) ) { throw new RuntimeException ( sprintf ( 'Authenticator class `%s` must implement \Auth\Authentication\AuthenticatorInterface' , $ className ) ) ; } return $ authenticator ; }
Creates authenticator instance.

@param string $className Authenticator class.
@param string $alias Authenticator alias.
@param array $config Config array.
@return \Authentication\Authenticator\AuthenticatorInterface
@throws \RuntimeException
Creates authenticator instance .