for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nexus\Dumper\Communication\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Xervice\Console\Command\AbstractCommand;
/**
* @method \Nexus\Dumper\DumperFacade getFacade()
*/
class DumpLocalCommand extends AbstractCommand
{
protected function configure()
$this
->setName('dumper:dump:local')
->setDescription('Dump one volume')
->addArgument('volume', InputArgument::REQUIRED, 'The volume to dump')
->addArgument('path', InputArgument::REQUIRED, 'The path inside the volume to dump')
->addArgument('version', InputArgument::REQUIRED, 'The version for naming of your dump');
}
* @param \Symfony\Component\Console\Input\InputInterface $input
* @param \Symfony\Component\Console\Output\OutputInterface $output
*
* @return int|null|void
* @throws \Core\Locator\Dynamic\ServiceNotParseable
* @throws \Xervice\Config\Exception\ConfigNotFound
protected function execute(InputInterface $input, OutputInterface $output)
$this->getFacade()->dumpToLocal(
$input->getArgument('volume'),
$input->getArgument('path'),
$input->getArgument('version')
);