Select Git revision
RoleProvider.php
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
UpdateDataCommand.php 883 B
<?php
namespace Unicaen\BddAdmin\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 Unicaen\BddAdmin\BddAwareTrait;
use Unicaen\BddAdmin\Ddl\Ddl;
/**
* Description of UpdateDataCommand
*
* @author Laurent Lécluse <laurent.lecluse at unicaen.fr>
*/
class UpdateDataCommand extends Command
{
use BddAwareTrait;
protected function configure(): void
{
$this->setDescription('Met à jour les données de la base de données');
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
$bdd = $this->getBdd()->setLogger($io);
$bdd->updateData();
return Command::SUCCESS;
}
}