Moved console commands to subdirectories.

This commit is contained in:
Vassyli
2021-01-16 22:00:15 +01:00
committed by Basilius Sauter
parent aa5b32c03d
commit a576bfd2a0
7 changed files with 22 additions and 15 deletions
@@ -1,8 +1,9 @@
<?php
declare(strict_types=1);
namespace LotGD\Core\Console\Command;
namespace LotGD\Core\Console\Command\Character;
use LotGD\Core\Console\Command\BaseCommand;
use LotGD\Core\Models\Character;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
@@ -1,8 +1,9 @@
<?php
declare(strict_types=1);
namespace LotGD\Core\Console\Command;
namespace LotGD\Core\Console\Command\Character;
use LotGD\Core\Console\Command\BaseCommand;
use LotGD\Core\Models\Character;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputDefinition;
@@ -1,8 +1,9 @@
<?php
declare(strict_types=1);
namespace LotGD\Core\Console\Command;
namespace LotGD\Core\Console\Command\Database;
use LotGD\Core\Console\Command\BaseCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@@ -1,8 +1,9 @@
<?php
declare(strict_types=1);
namespace LotGD\Core\Console\Command;
namespace LotGD\Core\Console\Command\Database;
use LotGD\Core\Console\Command\BaseCommand;
use Doctrine\ORM\Tools\SchemaTool;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
@@ -1,8 +1,9 @@
<?php
declare(strict_types=1);
namespace LotGD\Core\Console\Command;
namespace LotGD\Core\Console\Command\Module;
use LotGD\Core\Console\Command\BaseCommand;
use LotGD\Core\Exceptions\ClassNotFoundException;
use LotGD\Core\Exceptions\ModuleAlreadyExistsException;
use LotGD\Core\LibraryConfiguration;
@@ -1,8 +1,9 @@
<?php
declare(strict_types=1);
namespace LotGD\Core\Console\Command;
namespace LotGD\Core\Console\Command\Module;
use LotGD\Core\Console\Command\BaseCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
+10 -9
View File
@@ -5,13 +5,14 @@ namespace LotGD\Core\Console;
use LotGD\Core\Bootstrap;
use LotGD\Core\Console\Command\CharacterListCommand;
use LotGD\Core\Console\Command\CharacterResetViewpointCommand;
use LotGD\Core\Console\Command\Character\CharacterListCommand;
use LotGD\Core\Console\Command\Character\CharacterResetViewpointCommand;
use LotGD\Core\Console\Command\ConsoleCommand;
use LotGD\Core\Console\Command\DatabaseInitCommand;
use LotGD\Core\Console\Command\DatabaseSchemaUpdateCommand;
use LotGD\Core\Console\Command\ModuleRegisterCommand;
use LotGD\Core\Console\Command\ModuleValidateCommand;
use LotGD\Core\Console\Command\Database\DatabaseInitCommand;
use LotGD\Core\Console\Command\Database\DatabaseSchemaUpdateCommand;
use LotGD\Core\Console\Command\Module\ModuleRegisterCommand;
use LotGD\Core\Console\Command\Module\ModuleValidateCommand;
use LotGD\Core\Game;
use Symfony\Component\Console\Application;
/**
@@ -19,9 +20,9 @@ use Symfony\Component\Console\Application;
*/
class Main
{
private $application;
private $bootstrap;
private $game;
private Application $application;
private Bootstrap $bootstrap;
private Game $game;
/**
* Construct a new daenerys tool instance.