mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Strong type singletons from lib/base.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
e1d324f7eb
commit
a529aa79d8
1 changed files with 4 additions and 12 deletions
16
lib/base.php
16
lib/base.php
|
|
@ -123,21 +123,13 @@ class OC {
|
|||
*/
|
||||
public static bool $CLI = false;
|
||||
|
||||
/**
|
||||
* @var \OC\Autoloader
|
||||
*/
|
||||
public static $loader = null;
|
||||
public static \OC\Autoloader $loader;
|
||||
|
||||
/** @var \Composer\Autoload\ClassLoader */
|
||||
public static $composerAutoloader = null;
|
||||
public static \Composer\Autoload\ClassLoader $composerAutoloader;
|
||||
|
||||
/** @var \OC\Server */
|
||||
public static $server = null;
|
||||
public static \OC\Server $server;
|
||||
|
||||
/**
|
||||
* @var \OC\Config
|
||||
*/
|
||||
private static $config = null;
|
||||
private static \OC\Config $config;
|
||||
|
||||
/**
|
||||
* @throws \RuntimeException when the 3rdparty directory is missing or
|
||||
|
|
|
|||
Loading…
Reference in a new issue