X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/a532906fc0063a87cb16f9daa0b76adef5fb3e36..f8be49baba0c388737996a8d4489a61c5c07c8b5:/Command/CalendarCommand.php diff --git a/Command/CalendarCommand.php b/Command/CalendarCommand.php index 525aa67..003910a 100644 --- a/Command/CalendarCommand.php +++ b/Command/CalendarCommand.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; @@ -13,6 +22,7 @@ use Symfony\Component\Routing\RouterInterface; use Symfony\Contracts\Translation\TranslatorInterface; use Twig\Extra\Markdown\DefaultMarkdown; +use Rapsys\AirBundle\Command; use Rapsys\AirBundle\Entity\Session; use Rapsys\PackBundle\Util\SluggerUtil; @@ -29,16 +39,19 @@ class CalendarCommand extends Command { * * @var ManagerRegistry */ - protected $doctrine; + protected ManagerRegistry $doctrine; - ///Locale - protected $locale; + ///Router + protected RouterInterface $router; ///Slugger - protected $slugger; + protected SluggerUtil $slugger; ///Translator instance - protected $translator; + protected TranslatorInterface $translator; + + ///Locale + protected $locale; ///Lifetime string protected $lifetime; @@ -109,7 +122,7 @@ class CalendarCommand extends Command { } ///Process the attribution - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { //Compute period $period = new \DatePeriod( //Start from last week