Skip to content

Commit

Permalink
Merge pull request #15 from riha112/2.4.3
Browse files Browse the repository at this point in the history
[2.4.3] Filter structure changes
  • Loading branch information
carinadues authored Sep 1, 2021
2 parents cb0f409 + a3d53af commit a83a84a
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions src/Model/Template/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@

namespace ScandiPWA\CmsGraphQl\Model\Template;

use Magento\Email\Model\Template\Css;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\App\State;
use Magento\Framework\Css\PreProcessor\Adapter\CssInliner;
use Magento\Framework\Escaper;
use Magento\Framework\Filesystem;
use Magento\Framework\Filter\VariableResolverInterface;
use Magento\Framework\Stdlib\StringUtils;
use Magento\Framework\UrlInterface;
use Magento\Framework\View\Asset\Repository;
Expand All @@ -24,7 +28,6 @@
use Magento\Widget\Block\BlockInterface;
use Magento\Widget\Model\Template\FilterEmulate;
use Magento\Widget\Model\Widget;
use Pelago\Emogrifier;
use Psr\Log\LoggerInterface;

/**
Expand Down Expand Up @@ -63,15 +66,42 @@ public function __construct(
LayoutFactory $layoutFactory,
State $appState,
UrlInterface $urlModel,
Emogrifier $emogrifier,
Variables $configVariables,
VariableResolverInterface $variableResolver,
Css\Processor $cssProcessor,
Filesystem $pubDirectory,
CssInliner $cssInliner,
\Magento\Widget\Model\ResourceModel\Widget $widgetResource,
Widget $widget,
$variables = [],
array $directiveProcessors = [],
array $availableFilters,
array $widgetUnescapedParams,
array $widgetCustomParamsHandlers
) {
parent::__construct($string, $logger, $escaper, $assetRepo, $scopeConfig, $coreVariableFactory, $storeManager, $layout, $layoutFactory, $appState, $urlModel, $emogrifier, $configVariables, $widgetResource, $widget);
parent::__construct(
$string,
$logger,
$escaper,
$assetRepo,
$scopeConfig,
$coreVariableFactory,
$storeManager,
$layout,
$layoutFactory,
$appState,
$urlModel,
$configVariables,
$variableResolver,
$cssProcessor,
$pubDirectory,
$cssInliner,
$widgetResource,
$widget,
$variables ?? [],
$directiveProcessors
);

$this->availableFilters = $availableFilters;
$this->widgetParamsWhitelist = $widgetUnescapedParams;
$this->widgetCustomParamsHandlers = $widgetCustomParamsHandlers;
Expand Down

0 comments on commit a83a84a

Please sign in to comment.