mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #9419 from nextcloud/feature/noid/isCLI_parameter
Expose isCLI to DI
This commit is contained in:
commit
c40f7cd283
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue