diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php index 422e78ee06f71fb1307212ef49a9b8844c76f080..0e30fa02b94d3a939c720e9073348910a6d6ecc3 100644 --- a/lib/private/Console/Application.php +++ b/lib/private/Console/Application.php @@ -108,7 +108,10 @@ class Application { } if ($this->memoryInfo->isMemoryLimitSufficient() === false) { - $this->writeMemoryLimitInfo($output); + $output->getErrorOutput()->writeln( + '<comment>The current PHP memory limit ' . + 'is below the recommended value of 512MB.</comment>' + ); } try { @@ -187,20 +190,6 @@ class Application { } } - /** - * Write a memory info output if the limit is below the recommended value. - * - * @param ConsoleOutputInterface $output - * @return void - */ - private function writeMemoryLimitInfo(ConsoleOutputInterface $output) { - $errOutput = $output->getErrorOutput(); - $errOutput->writeln( - '<comment>The current PHP memory limit ' . - 'is below the recommended value of 512MB.</comment>' - ); - } - /** * Sets whether to automatically exit after a command execution or not. *