]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/actions/post_registration/class_LoginAfterRegistrationAction.php
Continued:
[core.git] / framework / main / classes / actions / post_registration / class_LoginAfterRegistrationAction.php
index 54c8542be28836449d07074ce240d544ea3e8a3d..6868102faead7cd7ca062227b02408f7aeee328d 100644 (file)
@@ -49,9 +49,11 @@ class LoginAfterRegistrationAction extends BaseAction implements PerformableActi
         */
        public static final function createLoginAfterRegistrationAction () {
                // Get a new instance
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('LOGIN-REGISTRATION-ACTION: CALLED!');
                $actionInstance = new LoginAfterRegistrationAction();
 
                // Return the instance
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('LOGIN-REGISTRATION-ACTION: actionInstance=%s - EXIT!', $actionInstance->__toString()));
                return $actionInstance;
        }
 
@@ -64,6 +66,7 @@ class LoginAfterRegistrationAction extends BaseAction implements PerformableActi
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get a login class from factory
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('LOGIN-REGISTRATION-ACTION: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $loginInstance = LoginFactory::createLoginObjectByRequest($requestInstance);
 
                // Login the user by the request instance
@@ -86,6 +89,9 @@ class LoginAfterRegistrationAction extends BaseAction implements PerformableActi
                        // Attach error message to the response
                        $responseInstance->addFatalMessage('failed_login_after_registration');
                }
+
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('LOGIN-REGISTRATION-ACTION: EXIT!');
        }
 
 }