\OC::server() method
Signed-off-by: zorn <zorn7@yandex.ru>
This commit is contained in:
parent
a61bad6ede
commit
498f987fd2
16
lib/base.php
16
lib/base.php
|
@ -123,11 +123,24 @@ class OC {
|
|||
*/
|
||||
public static $server = null;
|
||||
|
||||
/**
|
||||
* @var \OC\Server
|
||||
*/
|
||||
private static $serverContainer = null;
|
||||
|
||||
/**
|
||||
* @var \OC\Config
|
||||
*/
|
||||
private static $config = null;
|
||||
|
||||
/**
|
||||
* @return \OC\Server
|
||||
*/
|
||||
public static function server()
|
||||
{
|
||||
return self::$serverContainer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \RuntimeException when the 3rdparty directory is missing or
|
||||
* the app path list is empty or contains an invalid path
|
||||
|
@ -598,7 +611,8 @@ class OC {
|
|||
}
|
||||
|
||||
// setup the basic server
|
||||
self::$server = new \OC\Server(\OC::$WEBROOT, self::$config);
|
||||
self::$serverContainer = new \OC\Server(self::$WEBROOT, self::$config);
|
||||
self::$server = self::$serverContainer;
|
||||
\OC::$server->getEventLogger()->log('autoloader', 'Autoloader', $loaderStart, $loaderEnd);
|
||||
\OC::$server->getEventLogger()->start('boot', 'Initialize');
|
||||
|
||||
|
|
Loading…
Reference in New Issue