diff options
author | Igor Wiedler <igor@wiedler.ch> | 2012-01-07 20:53:04 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-01-07 20:53:44 +0100 |
commit | 581b5624f7be3675a35fc61ca6b67b409ae6e8c6 (patch) | |
tree | 347a8ec3e1b66a6f938d6a6889f55ad4b1c80ce8 /phpBB/common.php | |
parent | 80840a5f08c530d91f147c1bded1c316c2a73d0f (diff) | |
download | forums-581b5624f7be3675a35fc61ca6b67b409ae6e8c6.tar forums-581b5624f7be3675a35fc61ca6b67b409ae6e8c6.tar.gz forums-581b5624f7be3675a35fc61ca6b67b409ae6e8c6.tar.bz2 forums-581b5624f7be3675a35fc61ca6b67b409ae6e8c6.tar.xz forums-581b5624f7be3675a35fc61ca6b67b409ae6e8c6.zip |
[feature/event-dispatcher] Allow subscribers to be loaded from extensions
PHPBB3-9550
Diffstat (limited to 'phpBB/common.php')
-rw-r--r-- | phpBB/common.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index b308037a0e..44a0e7cec3 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -98,6 +98,7 @@ $phpbb_class_loader_ext->set_cache($cache->get_driver()); $phpbb_class_loader->set_cache($cache->get_driver()); // Instantiate some basic classes +$phpbb_dispatcher = new phpbb_event_dispatcher(); $request = new phpbb_request(); $user = new user(); $auth = new auth(); @@ -124,6 +125,9 @@ $phpbb_template_locator = new phpbb_template_locator(); $phpbb_template_path_provider = new phpbb_template_extension_path_provider($phpbb_extension_manager, new phpbb_template_path_provider()); $template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $phpbb_template_locator, $phpbb_template_path_provider); +$phpbb_subscriber_loader = new phpbb_event_extension_subscriber_loader($phpbb_dispatcher, $phpbb_extension_manager); +$phpbb_subscriber_loader->load(); + // Add own hook handler require($phpbb_root_path . 'includes/hooks/index.' . $phpEx); $phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display'))); |