Пример #1
0
 /**
  * Static Constructor.
  */
 public static function initialise()
 {
     global $auth, $config, $db, $template, $user, $cache, $request;
     global $phpbb_container, $phpbb_dispatcher, $phpbb_root_path;
     self::$auth =& $auth;
     self::$config =& $config;
     self::$db =& $db;
     self::$template =& $template;
     self::$user =& $user;
     self::$cache =& $cache;
     self::$request =& $request;
     self::$container =& $phpbb_container;
     self::$dispatcher =& $phpbb_dispatcher;
     self::$root_path = $phpbb_root_path;
     self::$php_ext = self::$container->getParameter('core.php_ext');
 }