Skip to content

Commit

Permalink
feat: simplify filters - removed filter extensions, registry directly…
Browse files Browse the repository at this point in the history
… working with container
  • Loading branch information
Kreyu committed Feb 10, 2024
1 parent 5058deb commit b5edc26
Show file tree
Hide file tree
Showing 40 changed files with 386 additions and 1,471 deletions.

This file was deleted.

13 changes: 0 additions & 13 deletions src/DataTables.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@
use Kreyu\Bundle\DataTableBundle\Exporter\ExporterFactoryBuilder;
use Kreyu\Bundle\DataTableBundle\Exporter\ExporterFactoryBuilderInterface;
use Kreyu\Bundle\DataTableBundle\Exporter\ExporterFactoryInterface;
use Kreyu\Bundle\DataTableBundle\Filter\FilterFactoryBuilder;
use Kreyu\Bundle\DataTableBundle\Filter\FilterFactoryBuilderInterface;
use Kreyu\Bundle\DataTableBundle\Filter\FilterFactoryInterface;

final class DataTables
{
public static function createFilterFactory(): FilterFactoryInterface
{
return self::createFilterFactoryBuilder()->getFilterFactory();
}

public static function createActionFactory(): ActionFactoryInterface
{
return self::createActionFactoryBuilder()->getActionFactory();
Expand All @@ -31,11 +23,6 @@ public static function createExporterFactory(): ExporterFactoryInterface
return self::createExporterFactoryBuilder()->getExporterFactory();
}

public static function createFilterFactoryBuilder(): FilterFactoryBuilderInterface
{
return new FilterFactoryBuilder();
}

public static function createActionFactoryBuilder(): ActionFactoryBuilderInterface
{
return new ActionFactoryBuilder();
Expand Down
2 changes: 0 additions & 2 deletions src/DependencyInjection/KreyuDataTableExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Kreyu\Bundle\DataTableBundle\Exporter\Extension\ExporterTypeExtensionInterface;
use Kreyu\Bundle\DataTableBundle\Exporter\Type\ExporterTypeInterface;
use Kreyu\Bundle\DataTableBundle\Extension\DataTableTypeExtensionInterface;
use Kreyu\Bundle\DataTableBundle\Filter\Extension\FilterExtensionInterface;
use Kreyu\Bundle\DataTableBundle\Filter\Extension\FilterTypeExtensionInterface;
use Kreyu\Bundle\DataTableBundle\Filter\Type\FilterTypeInterface;
use Kreyu\Bundle\DataTableBundle\Persistence\PersistenceAdapterInterface;
Expand All @@ -34,7 +33,6 @@ class KreyuDataTableExtension extends Extension implements PrependExtensionInter
DataTableTypeExtensionInterface::class => 'kreyu_data_table.type_extension',
ColumnTypeInterface::class => 'kreyu_data_table.column.type',
ColumnTypeExtensionInterface::class => 'kreyu_data_table.column.type_extension',
FilterExtensionInterface::class => 'kreyu_data_table.filter.extension',
FilterTypeInterface::class => 'kreyu_data_table.filter.type',
FilterTypeExtensionInterface::class => 'kreyu_data_table.filter.type_extension',
ActionExtensionInterface::class => 'kreyu_data_table.action.extension',
Expand Down
34 changes: 0 additions & 34 deletions src/Filter/Extension/AbstractFilterExtension.php

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions src/Filter/Extension/FilterExtensionInterface.php

This file was deleted.

30 changes: 0 additions & 30 deletions src/Filter/Extension/PreloadedFilterExtension.php

This file was deleted.

88 changes: 0 additions & 88 deletions src/Filter/FilterFactoryBuilder.php

This file was deleted.

38 changes: 0 additions & 38 deletions src/Filter/FilterFactoryBuilderInterface.php

This file was deleted.

Loading

0 comments on commit b5edc26

Please sign in to comment.