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();