WIP Refactor filter/search logic
This commit is contained in:
+3
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user