for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Algatux\InfluxDbBundle\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Base class for InfluxDbBundle commands.
*/
abstract class AbstractCommand extends Command implements ContainerAwareInterface
{
use ContainerAwareTrait;
* @var SymfonyStyle
protected $io;
* {@inheritdoc}
protected function initialize(InputInterface $input, OutputInterface $output)
$this->io = new SymfonyStyle($input, $output);
}
* @return ContainerInterface
public function getContainer(): ContainerInterface
return $this->container;