X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole.php;h=e08ea7f422b39db7b5e6f719b5df3a30cee0706d;hb=0d1fa70e2ecb372d158871285e0cda5f6d77194a;hp=e1654fbef68a08f8fc0828a6e2cd01098708f08a;hpb=e9f0c4dbfb4a7c8732e7c4408b10941ae9efa2c9;p=friendica.git diff --git a/src/Core/Console.php b/src/Core/Console.php index e1654fbef6..e08ea7f422 100644 --- a/src/Core/Console.php +++ b/src/Core/Console.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; @@ -7,8 +26,6 @@ use Friendica; /** * Description of Console - * - * @author Hypolite Petovan */ class Console extends \Asika\SimpleConsole\Console { @@ -34,12 +51,13 @@ Commands: docbloxerrorchecker Check the file tree for DocBlox errors extract Generate translation string file for the Friendica project (deprecated) globalcommunityblock Block remote profile from interacting with this node - globalcommunitysilence Silence remote profile from global community page + globalcommunitysilence Silence a profile from the global community page archivecontact Archive a contact when you know that it isn't existing anymore help Show help about a command, e.g (bin/console help config) autoinstall Starts automatic installation of friendica based on values from htconfig.php + lock Edit site locks maintenance Set maintenance mode for this node - newpassword Set a new password for a given user + user User management php2po Generate a messages.po file from a strings.php file po2php Generate a strings.php file from a messages.po file typo Checks for parse errors in Friendica files @@ -65,8 +83,9 @@ HELP; 'globalcommunitysilence' => Friendica\Console\GlobalCommunitySilence::class, 'archivecontact' => Friendica\Console\ArchiveContact::class, 'autoinstall' => Friendica\Console\AutomaticInstallation::class, + 'lock' => Friendica\Console\Lock::class, 'maintenance' => Friendica\Console\Maintenance::class, - 'newpassword' => Friendica\Console\NewPassword::class, + 'user' => Friendica\Console\User::class, 'php2po' => Friendica\Console\PhpToPo::class, 'po2php' => Friendica\Console\PoToPhp::class, 'typo' => Friendica\Console\Typo::class, @@ -144,7 +163,7 @@ HELP; $className = $this->subConsoles[$command]; - Friendica\BaseObject::setDependencyInjection($this->dice); + Friendica\DI::init($this->dice); /** @var Console $subconsole */ $subconsole = $this->dice->create($className, [$subargs]);