setName('rapsysair:rekey') //Set description shown with bin/console list ->setDescription('Rekey sessions') //Set description shown with bin/console --help airlibre:attribute ->setHelp('This command rekey sessions in chronological order'); } ///Process the attribution protected function execute(InputInterface $input, OutputInterface $output) { //Fetch doctrine $doctrine = $this->getDoctrine(); //Rekey sessions if (!$doctrine->getRepository(Session::class)->rekey()) { //Return failure return self::FAILURE; } //Return success return self::SUCCESS; } /** * Return the bundle alias * * {@inheritdoc} */ public function getAlias(): string { return 'rapsys_air'; } }