X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FPostUpdate.php;h=376d3abb4b0354f6a4463b1785e9fa054626a7f7;hb=e56a53647bd5469551bf4f9ef2df50a5dd16b943;hp=fb640a0b0ef13902c438ba5ce23c9ee8d2afe726;hpb=1de3960e267a8d298348fbca18cf1be1f6a20f7a;p=friendica.git diff --git a/src/Console/PostUpdate.php b/src/Console/PostUpdate.php index fb640a0b0e..376d3abb4b 100644 --- a/src/Console/PostUpdate.php +++ b/src/Console/PostUpdate.php @@ -1,19 +1,33 @@ . + * + */ namespace Friendica\Console; use Friendica\App; -use Friendica\Core\Config\Configuration; -use Friendica\Core\L10n\L10n; +use Friendica\Core\Config\Capability\IManageConfigValues; +use Friendica\Core\L10n; use Friendica\Core\Update; /** * Performs database post updates - * - * License: AGPLv3 or later, same as Friendica - * - * @author Tobias Diekershoff - * @author Hypolite Petovan */ class PostUpdate extends \Asika\SimpleConsole\Console { @@ -24,7 +38,7 @@ class PostUpdate extends \Asika\SimpleConsole\Console */ private $appMode; /** - * @var Configuration + * @var IManageConfigValues */ private $config; /** @@ -46,7 +60,7 @@ HELP; return $help; } - public function __construct(App\Mode $appMode, Configuration $config, L10n $l10n, array $argv = null) + public function __construct(App\Mode $appMode, IManageConfigValues $config, L10n $l10n, array $argv = null) { parent::__construct($argv); @@ -57,7 +71,7 @@ HELP; protected function doExecute() { - $a = \Friendica\BaseObject::getApp(); + $a = \Friendica\DI::app(); if ($this->getOption($this->helpOptions)) { $this->out($this->getHelp());