From b04c17301ec17397f858fb8cca7cb0043c16d4d5 Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Tue, 30 Oct 2012 15:40:38 +0100 Subject: Add phpbb4 plugin (for trunk of phpBB) --- plugins/phpbb4/phpbb4_bootstrap.php | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 plugins/phpbb4/phpbb4_bootstrap.php (limited to 'plugins/phpbb4/phpbb4_bootstrap.php') diff --git a/plugins/phpbb4/phpbb4_bootstrap.php b/plugins/phpbb4/phpbb4_bootstrap.php new file mode 100644 index 0000000..3f7dee5 --- /dev/null +++ b/plugins/phpbb4/phpbb4_bootstrap.php @@ -0,0 +1,51 @@ +load('services.yml'); + +$processor = new phpbb_di_processor_config($phpbb_root_path . 'config.' . $phpEx, $phpbb_root_path, $phpEx); +$processor->process($phpbb_container); + +// Setup class loader first +$phpbb_class_loader = $phpbb_container->get('class_loader'); +$phpbb_class_loader_ext = $phpbb_container->get('class_loader.ext'); + +// Instantiate some basic classes +$user = new noweb_user; +$auth = $phpbb_container->get('auth'); +$db = $phpbb_container->get('dbal.conn'); + +// Grab global variables, re-cache if necessary +$config = $phpbb_container->get('config'); +set_config(null, null, null, $config); +set_config_count(null, null, null, $config); -- cgit v1.1