for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Facile\MongoDbBundle\Commands;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class CreateDatabaseCommand.
*/
class CreateDatabaseCommand extends AbstractClientCommand
{
* {@inheritdoc}
protected function configure()
parent::configure();
$this
->setName('mongodb:database:create')
->setDescription('Creates the configured database')
->addOption('if-not-exists', null, InputOption::VALUE_NONE, 'Don\'t trigger an error, when the database already exists')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
// WTF NO API TO CREATE ?