WIP Refactor filter/search logic

This commit is contained in:
Björn Fromme committed 2021-08-16 10:58:24 +02:00
1 parent f2b6f89633
commit d07c07786f
21 files changed
+285 -1168

No files matched your search

@@ -28,7 +28,6 @@ namespace EP\EpTheme\ViewHelpers;
***************************************************************/
use EP\EpProducts\Service\FilterSettingsEncoder;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
@@ -69,8 +68,8 @@ class FilterSettingsEncoderViewHelper extends AbstractViewHelper
return '';
}
/** @var \EP\EpProducts\Service\FilterSettingsEncoder $encoder */
$encoder = GeneralUtility::makeInstance(FilterSettingsEncoder::class);
return $encoder::encode($argument);
$encoder = new FilterSettingsEncoder();
return $encoder->encode($argument);
}
}