diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-05-08 14:16:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 14:16:15 +0200 |
commit | c40f7cd28311eb58a17c797c83fd3f3bb0a84d6e (patch) | |
tree | 8444f544eb4dc1a852244f6ccaa499df16bd19cb | |
parent | 9fe95e8a7cf5f639fe3ba2a3aa33ce4a5c9a77b6 (diff) | |
parent | c37bc4fdf934a20b95334874b807b8f25f74d9f0 (diff) | |
download | nextcloud-server-c40f7cd28311eb58a17c797c83fd3f3bb0a84d6e.tar.gz nextcloud-server-c40f7cd28311eb58a17c797c83fd3f3bb0a84d6e.zip |
Merge pull request #9419 from nextcloud/feature/noid/isCLI_parameter
Expose isCLI to DI
-rw-r--r-- | lib/private/Server.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index a879c65bb9b..f230ce5b884 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -164,6 +164,9 @@ class Server extends ServerContainer implements IServerContainer { parent::__construct(); $this->webRoot = $webRoot; + // To find out if we are running from CLI or not + $this->registerParameter('isCLI', \OC::$CLI); + $this->registerService(\OCP\IServerContainer::class, function (IServerContainer $c) { return $c; }); |