-<?php
+<?php declare(strict_types=1);
+
+/*
+ * This file is part of the Rapsys AirBundle package.
+ *
+ * (c) Raphaël Gertz <symfony@rapsys.eu>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
namespace Rapsys\AirBundle\Command;
use Symfony\Contracts\Translation\TranslatorInterface;
use Twig\Extra\Markdown\DefaultMarkdown;
+use Rapsys\AirBundle\Command;
use Rapsys\AirBundle\Entity\Session;
use Rapsys\PackBundle\Util\SluggerUtil;
*
* @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;
}
///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