* @param $requestInstance An instance of a Requestable class
* @param $responseInstance An instance of a Responseable class
* @return void
- * @throws UserLoginMethodException If wether username nor email login
+ * @throws UserAuthMethodException If wether username nor email login
* was detected
* @throws MissingMethodException If a method was not found in the
* User class
// Is a method detected?
if (is_null($method)) {
// Then abort here
- throw new UserLoginMethodException($this, self::EXCEPTION_MISSING_METHOD);
+ throw new UserAuthMethodException($this, self::EXCEPTION_MISSING_METHOD);
} elseif (!method_exists($this->getConfigInstance()->readConfig('user_class'), $method)) {
// The method is invalid!
throw new MissingMethodException(array($this, $method), self::EXCEPTION_MISSING_METHOD);
// Now do the real login. This can be cookie- or session-based login
// which depends on the admins setting then on the user's taste.
// 1) Get a login helper instance
- $helperInstance = ObjectFactory::createObjectByConfiguredName('login_helper', array($requestInstance));
+ $helperInstance = ObjectFactory::createObjectByConfiguredName('login_helper_class', array($requestInstance));
// 2) Execute the login. This will now login...
$helperInstance->executeLogin($responseInstance);