removed memory infos
This commit is contained in:
		@@ -5,7 +5,7 @@
 | 
				
			|||||||
    <name>OCC Web</name>
 | 
					    <name>OCC Web</name>
 | 
				
			||||||
    <summary>OCC Commands in a web terminal</summary>
 | 
					    <summary>OCC Commands in a web terminal</summary>
 | 
				
			||||||
    <description><![CDATA[Run OCC Commands in a web terminal]]></description>
 | 
					    <description><![CDATA[Run OCC Commands in a web terminal]]></description>
 | 
				
			||||||
    <version>0.0.3</version>
 | 
					    <version>0.0.4</version>
 | 
				
			||||||
    <licence>agpl</licence>
 | 
					    <licence>agpl</licence>
 | 
				
			||||||
    <author mail="adphi.apps@gmail.com" >Adphi</author>
 | 
					    <author mail="adphi.apps@gmail.com" >Adphi</author>
 | 
				
			||||||
    <namespace>OCCWeb</namespace>
 | 
					    <namespace>OCCWeb</namespace>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
namespace OCA\OCCWeb\Controller;
 | 
					namespace OCA\OCCWeb\Controller;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use OC\MemoryInfo;
 | 
					//use OC\MemoryInfo;
 | 
				
			||||||
use OC\NeedsUpdateException;
 | 
					use OC\NeedsUpdateException;
 | 
				
			||||||
use OC_App;
 | 
					use OC_App;
 | 
				
			||||||
use OCP\AppFramework\QueryException;
 | 
					use OCP\AppFramework\QueryException;
 | 
				
			||||||
@@ -50,8 +50,8 @@ class OCCApplication {
 | 
				
			|||||||
  private $dispatcher;
 | 
					  private $dispatcher;
 | 
				
			||||||
  /** @var ILogger  */
 | 
					  /** @var ILogger  */
 | 
				
			||||||
  private $logger;
 | 
					  private $logger;
 | 
				
			||||||
  /** @var MemoryInfo */
 | 
					//  /** @var MemoryInfo */
 | 
				
			||||||
  private $memoryInfo;
 | 
					//  private $memoryInfo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * @param IConfig $config
 | 
					   * @param IConfig $config
 | 
				
			||||||
@@ -61,14 +61,14 @@ class OCCApplication {
 | 
				
			|||||||
   */
 | 
					   */
 | 
				
			||||||
  public function __construct(IConfig $config,
 | 
					  public function __construct(IConfig $config,
 | 
				
			||||||
                              EventDispatcherInterface $dispatcher,
 | 
					                              EventDispatcherInterface $dispatcher,
 | 
				
			||||||
                              ILogger $logger,
 | 
					                              ILogger $logger/*,
 | 
				
			||||||
                              MemoryInfo $memoryInfo) {
 | 
					                              MemoryInfo $memoryInfo*/) {
 | 
				
			||||||
    $defaults = \OC::$server->getThemingDefaults();
 | 
					    $defaults = \OC::$server->getThemingDefaults();
 | 
				
			||||||
    $this->config = $config;
 | 
					    $this->config = $config;
 | 
				
			||||||
    $this->application = new SymfonyApplication($defaults->getName(), \OC_Util::getVersionString());
 | 
					    $this->application = new SymfonyApplication($defaults->getName(), \OC_Util::getVersionString());
 | 
				
			||||||
    $this->dispatcher = $dispatcher;
 | 
					    $this->dispatcher = $dispatcher;
 | 
				
			||||||
    $this->logger = $logger;
 | 
					    $this->logger = $logger;
 | 
				
			||||||
    $this->memoryInfo = $memoryInfo;
 | 
					//    $this->memoryInfo = $memoryInfo;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
@@ -101,12 +101,12 @@ class OCCApplication {
 | 
				
			|||||||
      $output->setVerbosity(OutputInterface::VERBOSITY_QUIET);
 | 
					      $output->setVerbosity(OutputInterface::VERBOSITY_QUIET);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($this->memoryInfo->isMemoryLimitSufficient() === false) {
 | 
					//    if ($this->memoryInfo->isMemoryLimitSufficient() === false) {
 | 
				
			||||||
      $output->getErrorOutput()->writeln(
 | 
					//      $output->getErrorOutput()->writeln(
 | 
				
			||||||
        '<comment>The current PHP memory limit ' .
 | 
					//        '<comment>The current PHP memory limit ' .
 | 
				
			||||||
        'is below the recommended value of 512MB.</comment>'
 | 
					//        'is below the recommended value of 512MB.</comment>'
 | 
				
			||||||
      );
 | 
					//      );
 | 
				
			||||||
    }
 | 
					//    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
      require_once __DIR__ . '/../../../../core/register_command.php';
 | 
					      require_once __DIR__ . '/../../../../core/register_command.php';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,8 +32,8 @@ class OccController extends Controller
 | 
				
			|||||||
    $this->application = new OCCApplication(
 | 
					    $this->application = new OCCApplication(
 | 
				
			||||||
      \OC::$server->getConfig(),
 | 
					      \OC::$server->getConfig(),
 | 
				
			||||||
      \OC::$server->getEventDispatcher(),
 | 
					      \OC::$server->getEventDispatcher(),
 | 
				
			||||||
      \OC::$server->getLogger(),
 | 
					      \OC::$server->getLogger()/*,
 | 
				
			||||||
      \OC::$server->query(\OC\MemoryInfo::class)
 | 
					      \OC::$server->query(\OC\MemoryInfo::class)*/
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
    $this->application->setAutoExit(false);
 | 
					    $this->application->setAutoExit(false);
 | 
				
			||||||
//    $this->output = new OCCOutput();
 | 
					//    $this->output = new OCCOutput();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user