X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole.php;h=fefe02999459c91684e9ea45243934f792160b3e;hb=dc9658f532a067adaf96d753a34f3ee99ff8587b;hp=be5f315987a9c06e311008d332d4b3f23de19d20;hpb=9160fde8ca8cbf5e4d37923f4ce4560f5f6dc0be;p=friendica.git diff --git a/src/Core/Console.php b/src/Core/Console.php index be5f315987..fefe029994 100644 --- a/src/Core/Console.php +++ b/src/Core/Console.php @@ -1,6 +1,6 @@ Friendica\Console\GlobalCommunitySilence::class, 'lock' => Friendica\Console\Lock::class, 'maintenance' => Friendica\Console\Maintenance::class, + 'mergecontacts' => Friendica\Console\MergeContacts::class, 'movetoavatarcache' => Friendica\Console\MoveToAvatarCache::class, 'php2po' => Friendica\Console\PhpToPo::class, 'postupdate' => Friendica\Console\PostUpdate::class, @@ -119,7 +122,7 @@ HELP; $this->dice = $dice; } - protected function doExecute() + protected function doExecute(): int { if ($this->getOption('v')) { $this->out('Executable: ' . $this->executable); @@ -131,7 +134,7 @@ HELP; $command = null; if ($this->getOption('version')) { - $this->out('Friendica Console version ' . FRIENDICA_VERSION); + $this->out('Friendica Console version ' . App::VERSION); return 0; } elseif ((count($this->options) === 0 || $this->getOption($this->customHelpOptions) === true || $this->getOption($this->customHelpOptions) === 1) && count($this->args) === 0