for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Bldr.io
*
* (c) Aaron Scherer <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE
*/
namespace Bldr\Test\Mock\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ContainerInterface;
* @author Aaron Scherer <[email protected]>
class MockCommand extends Command implements ContainerAwareInterface
{
* @var ContainerInterface|ContainerBuilder $container
private $container;
* Sets the Container.
* @param ContainerInterface|null $container A ContainerInterface instance or null
* @api
public function setContainer(ContainerInterface $container = null)
$this->container = $container;
}
protected function configure()
$this->setName('mock:command');
* @param InputInterface $input
* @param OutputInterface $output
* @return int|null|void
protected function execute(InputInterface $input, OutputInterface $output)
return true;