]> Raphaël G. Git Repositories - airbundle/commitdiff
Remove getAlias function
authorRaphaël Gertz <git@rapsys.eu>
Thu, 7 Mar 2024 20:46:25 +0000 (21:46 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 7 Mar 2024 20:46:25 +0000 (21:46 +0100)
Cleanup

Command/RekeyCommand.php

index d25009c4cab638d26e84290755dcd55e0add9c93..4ad8dfcd14ffb0593016857ee9a585b55131b3c0 100644 (file)
@@ -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';
-       }
 }