for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Xervice\DataProvider\Communication\Console;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Xervice\Console\Business\Model\Command\AbstractCommand;
/**
* @method \Xervice\DataProvider\Business\DataProviderFacade getFacade()
*/
class CleanCommand extends AbstractCommand
{
* @throws \Symfony\Component\Console\Exception\InvalidArgumentException
protected function configure(): void
$this
->setName('dataprovider:clean')
->setDescription('Remove all data provider classes');
}
* @param \Symfony\Component\Console\Input\InputInterface $input
* @param \Symfony\Component\Console\Output\OutputInterface $output
*
* @return int
* @throws \InvalidArgumentException
protected function execute(InputInterface $input, OutputInterface $output)
$this->getFacade()->cleanDataProvider();
return 0;