php-spark/src/Commands/DevCommand.php

30 lines
724 B
PHP
Raw Normal View History

2021-12-30 00:55:30 +01:00
<?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;
}
}