*
* @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