From 9d4228291c392ac4886c81cf98d0de03d405c405 Mon Sep 17 00:00:00 2001 From: Zoddo Date: Wed, 15 Jul 2015 16:23:10 +0200 Subject: [PATCH] [ticket/13968] Add core.user_setup_after event It allows to execute code at the end of user setup. It can replace the phpbb_user_session_handler hook. PHPBB3-13968 --- phpBB/phpbb/user.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php index 3bc1af2899..f5ad5096bb 100644 --- a/phpBB/phpbb/user.php +++ b/phpBB/phpbb/user.php @@ -301,6 +301,14 @@ class user extends \phpbb\session // After calling it we continue script execution... phpbb_user_session_handler(); + /** + * Execute code at the end of user setup + * + * @event core.user_setup_after + * @since 3.1.6-RC1 + */ + $phpbb_dispatcher->dispatch('core.user_setup_after'); + // If this function got called from the error handler we are finished here. if (defined('IN_ERROR_HANDLER')) {