X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/059e66ae24b995fc9071e287647e20c007fc92f8..b603574e4355dac6e0a75d5bffd3c027ad19704d:/Command/RekeyCommand.php?ds=sidebyside diff --git a/Command/RekeyCommand.php b/Command/RekeyCommand.php index 630d443..4ad8dfc 100644 --- a/Command/RekeyCommand.php +++ b/Command/RekeyCommand.php @@ -1,4 +1,13 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace Rapsys\AirBundle\Command; @@ -6,16 +15,16 @@ use Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand; use Symfony\Component\Console\Input\InputInterface; 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 @@ -27,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(); @@ -41,13 +52,4 @@ class RekeyCommand extends DoctrineCommand { //Return success return self::SUCCESS; } - - /** - * Return the bundle alias - * - * {@inheritdoc} - */ - public function getAlias(): string { - return 'rapsys_air'; - } }