config = $config; $this->l = $l; $this->quotaService = $quotaService; } public function getForm(): TemplateResponse { $showOwnChart = !class_exists('\OCA\ServerInfo\Events\LoadAdditionalDataEvent'); try { $status = $this->quotaService->getStatus(); } catch (\Exception $e) { $status = ['used_bytes' => 0,'quota_bytes' => 0,'free_bytes' => 0,'percentage_used' => 0]; } return new TemplateResponse('globalquota','admin-settings',[ 'showChart' => $showOwnChart, 'quotaStatus' => $status, 'serverInfoIntegration' => !$showOwnChart ]); } public function getSection(): string { return 'globalquota'; } public function getPriority(): int { return 50; } }