From: Raphaƫl Gertz Date: Thu, 7 Mar 2024 20:46:25 +0000 (+0100) Subject: Remove getAlias function X-Git-Tag: 0.4.0~47 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/b603574e4355dac6e0a75d5bffd3c027ad19704d Remove getAlias function Cleanup --- diff --git a/Command/RekeyCommand.php b/Command/RekeyCommand.php index d25009c..4ad8dfc 100644 --- a/Command/RekeyCommand.php +++ b/Command/RekeyCommand.php @@ -18,14 +18,13 @@ use Symfony\Component\Console\Output\OutputInterface; use Rapsys\AirBundle\Command; use Rapsys\AirBundle\Entity\Session; +/** + * {@inheritdoc} + */ class RekeyCommand extends DoctrineCommand { - //Set failure constant - const FAILURE = 1; - - ///Set success constant - const SUCCESS = 0; - - ///Configure attribute command + /** + * Configure attribute command + */ protected function configure() { //Configure the class $this @@ -37,7 +36,9 @@ class RekeyCommand extends DoctrineCommand { ->setHelp('This command rekey sessions in chronological order'); } - ///Process the attribution + /** + * Process the attribution + */ protected function execute(InputInterface $input, OutputInterface $output): int { //Fetch doctrine $doctrine = $this->getDoctrine(); @@ -51,13 +52,4 @@ class RekeyCommand extends DoctrineCommand { //Return success return self::SUCCESS; } - - /** - * Return the bundle alias - * - * {@inheritdoc} - */ - public function getAlias(): string { - return 'rapsys_air'; - } }