Release 2.7.0 (#4506)
* added api URL for simpler integration * allow to request password change upon next login * make ModifiedAt timesheet independent * improved plugin api * replace kernel calls with AutoconfigureTag and TaggedIterator attributes * new translation keys (e.g. for days) * support setting min and max date on date and daterange pickers
This commit is contained in:
@@ -10,13 +10,15 @@
|
||||
namespace App\Tests\DependencyInjection\Compiler;
|
||||
|
||||
use App\DependencyInjection\Compiler\ExportServiceCompilerPass;
|
||||
use App\Export\ExportRepositoryInterface;
|
||||
use App\Export\Renderer\CsvRenderer;
|
||||
use App\Export\Renderer\HtmlRenderer;
|
||||
use App\Export\RendererInterface;
|
||||
use App\Export\ServiceExport;
|
||||
use App\Export\Timesheet\PDFRenderer;
|
||||
use App\Export\Timesheet\XlsxRenderer;
|
||||
use App\Export\TimesheetExportInterface;
|
||||
use App\Export\TimesheetExportRepository;
|
||||
use App\Kernel;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
@@ -38,17 +40,17 @@ class ExportServiceCompilerPassTest extends TestCase
|
||||
|
||||
$renderers = [CsvRenderer::class, HtmlRenderer::class];
|
||||
foreach ($renderers as $renderer) {
|
||||
$container->register($renderer)->addTag(Kernel::TAG_EXPORT_RENDERER);
|
||||
$container->register($renderer)->addTag(RendererInterface::class);
|
||||
}
|
||||
|
||||
$exporters = [PDFRenderer::class, XlsxRenderer::class];
|
||||
foreach ($exporters as $exporter) {
|
||||
$container->register($exporter)->addTag(Kernel::TAG_TIMESHEET_EXPORTER);
|
||||
$container->register($exporter)->addTag(TimesheetExportInterface::class);
|
||||
}
|
||||
|
||||
$repositories = [TimesheetExportRepository::class];
|
||||
foreach ($repositories as $repository) {
|
||||
$container->register($repository)->addTag(Kernel::TAG_EXPORT_REPOSITORY);
|
||||
$container->register($repository)->addTag(ExportRepositoryInterface::class);
|
||||
}
|
||||
|
||||
return $container;
|
||||
|
||||
@@ -13,11 +13,14 @@ use App\DependencyInjection\Compiler\InvoiceServiceCompilerPass;
|
||||
use App\Invoice\Calculator\DefaultCalculator;
|
||||
use App\Invoice\Calculator\ShortInvoiceCalculator;
|
||||
use App\Invoice\Calculator\UserInvoiceCalculator;
|
||||
use App\Invoice\CalculatorInterface;
|
||||
use App\Invoice\InvoiceItemRepositoryInterface;
|
||||
use App\Invoice\NumberGenerator\ConfigurableNumberGenerator;
|
||||
use App\Invoice\NumberGenerator\DateNumberGenerator;
|
||||
use App\Invoice\NumberGeneratorInterface;
|
||||
use App\Invoice\Renderer\DocxRenderer;
|
||||
use App\Invoice\RendererInterface;
|
||||
use App\Invoice\ServiceInvoice;
|
||||
use App\Kernel;
|
||||
use App\Repository\TimesheetInvoiceItemRepository;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
@@ -37,22 +40,22 @@ class InvoiceServiceCompilerPassTest extends TestCase
|
||||
|
||||
$renderers = [DocxRenderer::class];
|
||||
foreach ($renderers as $renderer) {
|
||||
$container->register($renderer)->addTag(Kernel::TAG_INVOICE_RENDERER);
|
||||
$container->register($renderer)->addTag(RendererInterface::class);
|
||||
}
|
||||
|
||||
$numberGenerators = [DateNumberGenerator::class, ConfigurableNumberGenerator::class];
|
||||
foreach ($numberGenerators as $numberGenerator) {
|
||||
$container->register($numberGenerator)->addTag(Kernel::TAG_INVOICE_NUMBER_GENERATOR);
|
||||
$container->register($numberGenerator)->addTag(NumberGeneratorInterface::class);
|
||||
}
|
||||
|
||||
$calculators = [DefaultCalculator::class, UserInvoiceCalculator::class, ShortInvoiceCalculator::class];
|
||||
foreach ($calculators as $calculator) {
|
||||
$container->register($calculator)->addTag(Kernel::TAG_INVOICE_CALCULATOR);
|
||||
$container->register($calculator)->addTag(CalculatorInterface::class);
|
||||
}
|
||||
|
||||
$repositories = [TimesheetInvoiceItemRepository::class];
|
||||
foreach ($repositories as $repository) {
|
||||
$container->register($repository)->addTag(Kernel::TAG_INVOICE_REPOSITORY);
|
||||
$container->register($repository)->addTag(InvoiceItemRepositoryInterface::class);
|
||||
}
|
||||
|
||||
return $container;
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
namespace App\Tests\DependencyInjection\Compiler;
|
||||
|
||||
use App\DependencyInjection\Compiler\WidgetCompilerPass;
|
||||
use App\Kernel;
|
||||
use App\Widget\Type\ActiveTimesheets;
|
||||
use App\Widget\Type\ActiveUsersMonth;
|
||||
use App\Widget\WidgetInterface;
|
||||
use App\Widget\WidgetService;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
@@ -32,7 +32,7 @@ class WidgetCompilerPassTest extends TestCase
|
||||
|
||||
$widgets = [ActiveTimesheets::class, ActiveUsersMonth::class];
|
||||
foreach ($widgets as $widget) {
|
||||
$container->register($widget)->addTag(Kernel::TAG_WIDGET);
|
||||
$container->register($widget)->addTag(WidgetInterface::class);
|
||||
}
|
||||
|
||||
return $container;
|
||||
|
||||
Reference in New Issue
Block a user