Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Db/Migrations/ExecuteCommand.php')
-rw-r--r--core/Command/Db/Migrations/ExecuteCommand.php19
1 files changed, 6 insertions, 13 deletions
diff --git a/core/Command/Db/Migrations/ExecuteCommand.php b/core/Command/Db/Migrations/ExecuteCommand.php
index 1104818e710..a2dc2b92418 100644
--- a/core/Command/Db/Migrations/ExecuteCommand.php
+++ b/core/Command/Db/Migrations/ExecuteCommand.php
@@ -3,6 +3,7 @@
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
* @copyright Copyright (c) 2017, ownCloud GmbH
*
+ * @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @author Joas Schilling <coding@schilljs.com>
*
* @license AGPL-3.0
@@ -20,15 +21,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-
namespace OC\Core\Command\Db\Migrations;
-
+use OC\DB\Connection;
use OC\DB\MigrationService;
use OC\Migration\ConsoleOutput;
-use OCP\App\IAppManager;
use OCP\IConfig;
-use OCP\IDBConnection;
use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface;
use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
use Symfony\Component\Console\Command\Command;
@@ -38,23 +36,19 @@ use Symfony\Component\Console\Output\OutputInterface;
class ExecuteCommand extends Command implements CompletionAwareInterface {
- /** @var IDBConnection */
+ /** @var Connection */
private $connection;
/** @var IConfig */
private $config;
- /** @var IAppManager */
- protected $appManager;
-
/**
* ExecuteCommand constructor.
*
- * @param IDBConnection $connection
+ * @param Connection $connection
* @param IConfig $config
- * @param IAppManager $appManager
*/
- public function __construct(IDBConnection $connection, IAppManager $appManager, IConfig $config) {
+ public function __construct(Connection $connection, IConfig $config) {
$this->connection = $connection;
$this->config = $config;
@@ -76,7 +70,7 @@ class ExecuteCommand extends Command implements CompletionAwareInterface {
* @param OutputInterface $output
* @return int
*/
- public function execute(InputInterface $input, OutputInterface $output) {
+ public function execute(InputInterface $input, OutputInterface $output): int {
$appName = $input->getArgument('app');
$ms = new MigrationService($appName, $this->connection, new ConsoleOutput($output));
$version = $input->getArgument('version');
@@ -128,5 +122,4 @@ class ExecuteCommand extends Command implements CompletionAwareInterface {
return [];
}
-
}