From 608b0e24620d038f71c8379ba102442484b96cb6 Mon Sep 17 00:00:00 2001 From: Adphi Date: Thu, 24 Jan 2019 20:22:55 +0100 Subject: [PATCH] removed memory infos --- appinfo/info.xml | 2 +- lib/Controller/OCCApplication.php | 24 ++++++++++++------------ lib/Controller/OCCController.php | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index ad05434..8bc9509 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ OCC Web OCC Commands in a web terminal - 0.0.3 + 0.0.4 agpl Adphi OCCWeb diff --git a/lib/Controller/OCCApplication.php b/lib/Controller/OCCApplication.php index 7acca97..96ce2c9 100644 --- a/lib/Controller/OCCApplication.php +++ b/lib/Controller/OCCApplication.php @@ -29,7 +29,7 @@ */ namespace OCA\OCCWeb\Controller; -use OC\MemoryInfo; +//use OC\MemoryInfo; use OC\NeedsUpdateException; use OC_App; use OCP\AppFramework\QueryException; @@ -50,8 +50,8 @@ class OCCApplication { private $dispatcher; /** @var ILogger */ private $logger; - /** @var MemoryInfo */ - private $memoryInfo; +// /** @var MemoryInfo */ +// private $memoryInfo; /** * @param IConfig $config @@ -61,14 +61,14 @@ class OCCApplication { */ public function __construct(IConfig $config, EventDispatcherInterface $dispatcher, - ILogger $logger, - MemoryInfo $memoryInfo) { + ILogger $logger/*, + MemoryInfo $memoryInfo*/) { $defaults = \OC::$server->getThemingDefaults(); $this->config = $config; $this->application = new SymfonyApplication($defaults->getName(), \OC_Util::getVersionString()); $this->dispatcher = $dispatcher; $this->logger = $logger; - $this->memoryInfo = $memoryInfo; +// $this->memoryInfo = $memoryInfo; } /** @@ -101,12 +101,12 @@ class OCCApplication { $output->setVerbosity(OutputInterface::VERBOSITY_QUIET); } - if ($this->memoryInfo->isMemoryLimitSufficient() === false) { - $output->getErrorOutput()->writeln( - 'The current PHP memory limit ' . - 'is below the recommended value of 512MB.' - ); - } +// if ($this->memoryInfo->isMemoryLimitSufficient() === false) { +// $output->getErrorOutput()->writeln( +// 'The current PHP memory limit ' . +// 'is below the recommended value of 512MB.' +// ); +// } try { require_once __DIR__ . '/../../../../core/register_command.php'; diff --git a/lib/Controller/OCCController.php b/lib/Controller/OCCController.php index 3a51589..38dcc9b 100644 --- a/lib/Controller/OCCController.php +++ b/lib/Controller/OCCController.php @@ -32,8 +32,8 @@ class OccController extends Controller $this->application = new OCCApplication( \OC::$server->getConfig(), \OC::$server->getEventDispatcher(), - \OC::$server->getLogger(), - \OC::$server->query(\OC\MemoryInfo::class) + \OC::$server->getLogger()/*, + \OC::$server->query(\OC\MemoryInfo::class)*/ ); $this->application->setAutoExit(false); // $this->output = new OCCOutput();