for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Behapi\Debug;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Behat\Testwork\Cli\Controller;
final class CliController implements Controller
{
/** @var Status */
private $status;
public function __construct(Status $status)
$this->status = $status;
}
/** {@inheritDoc} */
public function configure(Command $command)
$command
->addOption('behapi-debug', null, InputOption::VALUE_NONE, 'Activates the debug mode for behapi');
public function execute(InputInterface $input, OutputInterface $output)
$debug = $input->getOption('behapi-debug');
assert(is_bool($debug));
$this->status->setEnabled($debug);