Re-factored the routing to support API in the future.

This commit is contained in:
abdulmohsen
2024-03-02 20:28:24 +03:00
parent 3f4ff5c94d
commit 56d7b9ff10
60 changed files with 649 additions and 194 deletions

View File

@@ -5,7 +5,7 @@ declare(strict_types=1);
namespace App\Commands\Config;
use App\Command;
use App\Libs\Routable;
use App\Libs\Attributes\Route\Cli;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputArgument;
@@ -21,7 +21,7 @@ use Symfony\Component\Console\Question\Question;
* And act as shortcut for running the following command:
* config:manage --add -- backend_name
*/
#[Routable(command: self::ROUTE)]
#[Cli(command: self::ROUTE)]
final class AddCommand extends Command
{
public const ROUTE = 'config:add';