Switched database reference from storage to database.

This commit is contained in:
Abdulmhsen B. A. A
2022-07-06 20:04:20 +03:00
parent 64615be31d
commit 4ff605d5bf
32 changed files with 234 additions and 240 deletions

View File

@@ -5,8 +5,8 @@ declare(strict_types=1);
namespace App\Commands\System;
use App\Command;
use App\Libs\Database\DatabaseInterface as iDB;
use App\Libs\Routable;
use App\Libs\Storage\StorageInterface;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@@ -15,7 +15,7 @@ final class MaintenanceCommand extends Command
{
public const ROUTE = 'system:db:maintenance';
public function __construct(private StorageInterface $storage)
public function __construct(private iDB $db)
{
parent::__construct();
}
@@ -28,7 +28,7 @@ final class MaintenanceCommand extends Command
protected function runCommand(InputInterface $input, OutputInterface $output): int
{
$this->storage->maintenance();
$this->db->maintenance();
return self::SUCCESS;
}