@@ -12,11 +12,11 @@ foreach ([__DIR__ . '/vendor/autoload.php', __DIR__ . '/../../autoload.php'] as
1212 break ;
1313 }
1414}
15- require_once __DIR__ . '/src/bootstrap.php ' ;
15+ $ containerBuilder = require_once __DIR__ . '/src/bootstrap.php ' ;
1616
1717use Symfony \Component \Console \Application ;
1818
19- define ( ' SIMTT_VERSION ' , '1.1.0 ' ) ;
19+ const SIMTT_VERSION = '1.2.1 ' ;
2020
2121echo 'Simtt: the simple interactive time tracker in PHP by Steffen Zeidler ' . "\n" ;
2222
@@ -25,35 +25,21 @@ $simttInteractive = ($_SERVER['argv'][1] ?? null) === '-i';
2525$ application = new Application ('Simtt ' , SIMTT_VERSION );
2626if ($ simttInteractive ) {
2727 unset($ _SERVER ['argv ' ][1 ]);
28- /** @noinspection PhpParamsInspection */
2928 $ application ->add ($ containerBuilder ->get ('simtt.cmd ' ));
3029 $ application ->setDefaultCommand ('Simtt ' );
3130}
3231
33- /** @noinspection PhpParamsInspection */
3432$ application ->add ($ containerBuilder ->get ('start.cmd ' ));
35- /** @noinspection PhpParamsInspection */
3633$ application ->add ($ containerBuilder ->get ('stop.cmd ' ));
37- /** @noinspection PhpParamsInspection */
3834$ application ->add ($ containerBuilder ->get ('continue.cmd ' ));
39- /** @noinspection PhpParamsInspection */
4035$ application ->add ($ containerBuilder ->get ('status.cmd ' ));
41- /** @noinspection PhpParamsInspection */
4236$ application ->add ($ containerBuilder ->get ('task.cmd ' ));
43- /** @noinspection PhpParamsInspection */
4437$ application ->add ($ containerBuilder ->get ('comment.cmd ' ));
45- /** @noinspection PhpParamsInspection */
4638$ application ->add ($ containerBuilder ->get ('log.cmd ' ));
47- /** @noinspection PhpParamsInspection */
4839$ application ->add ($ containerBuilder ->get ('day.cmd ' ));
49- /** @noinspection PhpParamsInspection */
5040$ application ->add ($ containerBuilder ->get ('week.cmd ' ));
51- /** @noinspection PhpParamsInspection */
5241$ application ->add ($ containerBuilder ->get ('month.cmd ' ));
53- /** @noinspection PhpParamsInspection */
5442$ application ->add ($ containerBuilder ->get ('yesterday.cmd ' ));
55- /** @noinspection PhpParamsInspection */
5643$ application ->add ($ containerBuilder ->get ('now.cmd ' ));
57- /** @noinspection PhpParamsInspection */
5844$ application ->add ($ containerBuilder ->get ('tasks.cmd ' ));
5945$ application ->run ();
0 commit comments