30 lines
724 B
PHP
30 lines
724 B
PHP
|
<?php
|
||
|
|
||
|
namespace Spark\Commands;
|
||
|
|
||
|
use Symfony\Component\Console\Attribute\AsCommand;
|
||
|
use Spark\Commands\Command;
|
||
|
use Symfony\Component\Console\Input\InputArgument;
|
||
|
use Symfony\Component\Console\Input\InputInterface;
|
||
|
use Symfony\Component\Console\Input\InputOption;
|
||
|
use Symfony\Component\Console\Output\OutputInterface;
|
||
|
use Spark\DevMode\DevMode;
|
||
|
|
||
|
#[AsCommand(name:'dev', description:'Enter development mode')]
|
||
|
class DevCommand extends Command
|
||
|
{
|
||
|
protected function configure()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
protected function execute(InputInterface $input, OutputInterface $output)
|
||
|
{
|
||
|
$env = $this->getEnvironment();
|
||
|
|
||
|
$devmode = new DevMode($env);
|
||
|
$devmode->run();
|
||
|
|
||
|
return Command::SUCCESS;
|
||
|
}
|
||
|
}
|