5 use Symfony\Component\Console\Helper\Table;
16 $this->setName(
'upgrade:list')
17 ->setDescription(
elgg_echo(
'cli:upgrade:list:description'));
24 $completed_upgrades =
_elgg_services()->upgrades->getCompletedUpgrades();
25 if (!empty($completed_upgrades)) {
26 $table =
new Table($this->output);
30 foreach ($completed_upgrades as
$upgrade) {
40 $pending_upgrades =
_elgg_services()->upgrades->getPendingUpgrades();
41 if (!empty($pending_upgrades)) {
42 $table =
new Table($this->output);
46 foreach ($pending_upgrades as
$upgrade) {
56 if (empty($completed_upgrades) && empty($pending_upgrades)) {
if(empty($guid)) $upgrade
write($messages, $level=LogLevel::INFO)
Write messages to output buffer.
Abstract command with some utility methods.
command()
{Command to be executed.This method method should return an integer code of the error (or 0 for succe...
_elgg_services()
Get the global service provider.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.