2021-04-04 22:41:15 +02:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
use Symfony\Component\Console\Application;
|
2022-05-11 19:43:05 +02:00
|
|
|
use RprtCli\Commands\InvoiceCommand;
|
|
|
|
use RprtCli\Commands\ReportCommand;
|
2021-04-04 22:41:15 +02:00
|
|
|
use DI\ContainerBuilder;
|
|
|
|
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
|
|
|
|
$builder = new ContainerBuilder();
|
2022-05-14 22:08:54 +02:00
|
|
|
$builder->addDefinitions(__DIR__ . '/dependencies.php');
|
2021-04-04 22:41:15 +02:00
|
|
|
$container = $builder->build();
|
2021-09-20 01:08:42 +02:00
|
|
|
|
2022-05-18 18:58:43 +02:00
|
|
|
$application = new Application('Command Line Tool to process Youtrack Reports', '0.1.0');
|
2021-04-04 22:41:15 +02:00
|
|
|
|
2022-05-11 19:43:05 +02:00
|
|
|
$invoiceCommand = $container->get(InvoiceCommand::class);
|
|
|
|
$application->add($invoiceCommand);
|
|
|
|
$reportCommand = $container->get(ReportCommand::class);
|
|
|
|
$application->add($reportCommand);
|
2021-04-04 22:41:15 +02:00
|
|
|
|
|
|
|
$application->run();
|