RprtCli/app/dependencies.php

17 lines
411 B
PHP
Raw Normal View History

<?php
use function DI\create;
use function DI\get;
use RprtCli\Commands\RprtCommand;
2021-04-05 16:23:06 +02:00
use RprtCli\Utils\CsvReport\CsvReport;
use RprtCli\Utils\CsvReport\CsvReportInterface;
return [
2021-04-05 16:23:06 +02:00
\GuzzleHttp\ClientInterface::class => DI\get(\GuzzleHttp\Client::class),
CsvReportInterface::class => DI\get(CsvReport::class),
RprtCommand::class => DI\create()->constructor(
DI\get(CsvReportInterface::class)
)
];