Switched database reference from storage to database.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user