diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-21 00:58:15 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-21 00:58:15 +0200 |
commit | ba029ef4b27cfeabbc67523131fa473397b77f01 (patch) | |
tree | 6c6fe9115ff047547b2befcaadff220499180cd7 /lib/base.php | |
parent | aa979f5dff4234a3db9e6fb1ddc50335c04c194b (diff) | |
download | nextcloud-server-ba029ef4b27cfeabbc67523131fa473397b77f01.tar.gz nextcloud-server-ba029ef4b27cfeabbc67523131fa473397b77f01.zip |
initial setup of the server container
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index eaee8424651..a81f1a59b8a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -84,6 +84,11 @@ class OC { */ public static $loader = null; + /** + * @var \OC\Server + */ + public static $server = null; + public static function initPaths() { // calculate the root directories OC::$SERVERROOT = str_replace("\\", '/', substr(__DIR__, 0, -4)); @@ -361,6 +366,9 @@ class OC { self::$loader->registerPrefix('Patchwork', '3rdparty'); spl_autoload_register(array(self::$loader, 'load')); + // setup the basic server + self::$server = new \OC\Server(); + // set some stuff //ob_start(); error_reporting(E_ALL | E_STRICT); |