aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-02-03 15:34:01 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2025-02-13 11:46:42 +0100
commit64863c9d4631c42d4ce3997d7033bca8f06ca66a (patch)
treeb7e88154522cd827da8163719aeb91b51d5640cd /apps/workflowengine/lib
parent007335dadfcda18330bb853a73bf451ed41c8254 (diff)
downloadnextcloud-server-64863c9d4631c42d4ce3997d7033bca8f06ca66a.tar.gz
nextcloud-server-64863c9d4631c42d4ce3997d7033bca8f06ca66a.zip
chore: Apply new rector configuration to apps folder
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r--apps/workflowengine/lib/BackgroundJobs/Rotate.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/BackgroundJobs/Rotate.php b/apps/workflowengine/lib/BackgroundJobs/Rotate.php
index fd3c76c524e..66ac19f425a 100644
--- a/apps/workflowengine/lib/BackgroundJobs/Rotate.php
+++ b/apps/workflowengine/lib/BackgroundJobs/Rotate.php
@@ -8,7 +8,9 @@ namespace OCA\WorkflowEngine\BackgroundJobs;
use OCA\WorkflowEngine\AppInfo\Application;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\TimedJob;
+use OCP\IConfig;
use OCP\Log\RotationTrait;
+use OCP\Server;
class Rotate extends TimedJob {
use RotationTrait;
@@ -19,7 +21,7 @@ class Rotate extends TimedJob {
}
protected function run($argument) {
- $config = \OC::$server->getConfig();
+ $config = Server::get(IConfig::class);
$default = $config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/flow.log';
$this->filePath = trim((string)$config->getAppValue(Application::APP_ID, 'logfile', $default));