[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/includes/ -> compatibility_globals.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * For full copyright and license information, please see
  10  * the docs/CREDITS.txt file.
  11  *
  12  */
  13  
  14  /**
  15  */
  16  if (!defined('IN_PHPBB'))
  17  {
  18      exit;
  19  }
  20  
  21  // set up caching
  22  $cache = $phpbb_container->get('cache');
  23  
  24  // Instantiate some basic classes
  25  $phpbb_dispatcher = $phpbb_container->get('dispatcher');
  26  $request    = $phpbb_container->get('request');
  27  $user        = $phpbb_container->get('user');
  28  $auth        = $phpbb_container->get('auth');
  29  $db            = $phpbb_container->get('dbal.conn');
  30  
  31  // make sure request_var uses this request instance
  32  request_var('', 0, false, false, $request); // "dependency injection" for a function
  33  
  34  // Grab global variables, re-cache if necessary
  35  $config = $phpbb_container->get('config');
  36  set_config(null, null, null, $config);
  37  set_config_count(null, null, null, $config);
  38  
  39  $phpbb_log = $phpbb_container->get('log');
  40  $symfony_request = $phpbb_container->get('symfony_request');
  41  $phpbb_filesystem = $phpbb_container->get('filesystem');
  42  $phpbb_path_helper = $phpbb_container->get('path_helper');
  43  
  44  // load extensions
  45  $phpbb_extension_manager = $phpbb_container->get('ext.manager');
  46  
  47  $template = $phpbb_container->get('template');


Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1