for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Incapsula\Command;
use Incapsula\Client;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
abstract class AbstractCommand extends Command
{
/**
* @var Client;
*/
protected $client;
protected function configure(): void
$this->addOption('profile', 'p', InputOption::VALUE_OPTIONAL, 'Incapsula profile');
}
protected function initialize(InputInterface $input, OutputInterface $output): void
$this->client = new Client([
'profile' => $input->getParameterOption(['--profile', '-p']),
]);