mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[feature/php-events] Add docs to core.common
@todo: Add event to user::setup() after branch is updated to develop, so timezone handling is there PHPBB3-9550
This commit is contained in:
parent
39869d46b1
commit
01369dd7f8
1 changed files with 13 additions and 0 deletions
|
@ -144,4 +144,17 @@ if (!$config['use_system_cron'])
|
|||
$cron = new phpbb_cron_manager(new phpbb_cron_task_provider($phpbb_extension_manager), $cache->get_driver());
|
||||
}
|
||||
|
||||
/**
|
||||
* Main event which is triggered on every page
|
||||
*
|
||||
* You can use this event to load function files and initiate objects
|
||||
*
|
||||
* NOTE: At this point the global session ($user) and permissions ($auth)
|
||||
* do NOT exist yet. If you need to use the user objec
|
||||
* (f.e. to use language files) or need to check permissions, please use
|
||||
* the core.user_setup event instead!
|
||||
*
|
||||
* @event core.common
|
||||
* @since 3.1-A1
|
||||
*/
|
||||
$phpbb_dispatcher->dispatch('core.common');
|
||||
|
|
Loading…
Add table
Reference in a new issue