X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FPostUpdate.php;h=35b57fb7aab9c23f4773a2aa4c3f7cc9e27c159c;hb=99239e3d99d8d97419af830c0e22c09faba4c133;hp=fb640a0b0ef13902c438ba5ce23c9ee8d2afe726;hpb=f1e7d97b8cae93e1c77f5a5085880409b01fcdbe;p=friendica.git diff --git a/src/Console/PostUpdate.php b/src/Console/PostUpdate.php index fb640a0b0e..35b57fb7aa 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\IConfig; +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 IConfig */ 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, IConfig $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());