]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Command/CalendarCommand.php
Add configure member function
[airbundle] / Command / CalendarCommand.php
index 525aa670eb7bd4259042f35db3b943217cf92c51..2488f51d3840262a512c2c6a54abd0cdffa9c770 100644 (file)
@@ -29,16 +29,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 +112,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