|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
use function DI\create; |
|
|
|
use function DI\get; |
|
|
|
use function DI\factory; |
|
|
|
|
|
|
|
use RprtCli\Commands\InvoiceCommand; |
|
|
|
use RprtCli\Commands\ReportCommand; |
|
|
@ -18,6 +19,7 @@ use RprtCli\Utils\PdfExport\PdfExportInterface; |
|
|
|
use RprtCli\Utils\PdfExport\PdfExportService; |
|
|
|
use RprtCli\Utils\TimeTrackingServices\YoutrackInterface; |
|
|
|
use RprtCli\Utils\TimeTrackingServices\YoutrackService; |
|
|
|
use Psr\Container\ContainerInterface; |
|
|
|
|
|
|
|
# use Symfony\Component\Translation\Translator;
|
|
|
|
#use Symfony\Component\Translation\Loader\PoFileLoader;
|
|
|
@ -32,7 +34,13 @@ return [ |
|
|
|
'config.path' => '~/.config/rprt-cli/', |
|
|
|
'default_locale' => 'en', |
|
|
|
'guzzle' => get(Client::class), |
|
|
|
'mpdf' => get(Mpdf::class), |
|
|
|
// 'mpdf' => get(Mpdf::class),
|
|
|
|
'mpdf' => factory(function (ContainerInterface $c) { |
|
|
|
return new Mpdf(['tempDir' => sys_get_temp_dir()]); |
|
|
|
}), |
|
|
|
// 'mpdf' => function () {
|
|
|
|
// return new Mpdf(['tempDir' => sys_get_temp_dir()]);
|
|
|
|
// },
|
|
|
|
ConfigurationInterface::class => get(ConfigurationService::class), |
|
|
|
ConfigurationService::class => create()->constructor( |
|
|
|
get('config.path'), |
|
|
|