for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Gerard van Helden <[email protected]>
* @copyright Zicht Online <http://zicht.nl>
*/
namespace Zicht\Tool\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Yaml\Yaml;
* Dumps the container
class DumpCommand extends BaseCommand
{
* Configures the command
*
* @return void
protected function configure()
$this
->setName('z:dump')
->setHelp('Dumps container values')
->setDescription('Dumps container values')
;
}
* Executes the command
* @param InputInterface $input
* @param OutputInterface $output
protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln(Yaml::dump($this->getContainer()->getValues(), 5, 4));