/** * @param \Magento\Framework\Stdlib\String $string * @param \Psr\Log\LoggerInterface $logger * @param \Magento\Framework\Escaper $escaper * @param \Magento\Framework\View\Asset\Repository $assetRepo * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig * @param \Magento\Variable\Model\VariableFactory $coreVariableFactory * @param \Magento\Store\Model\StoreManagerInterface $storeManager * @param \Magento\Framework\View\LayoutInterface $layout * @param \Magento\Framework\View\LayoutFactory $layoutFactory * @param \Magento\Framework\App\State $appState * @param \Magento\Backend\Model\UrlInterface $backendUrlBuilder * @param \Pelago\Emogrifier $emogrifier * @param array $variables * * @SuppressWarnings(PHPMD.ExcessiveParameterList) */ public function __construct(\Magento\Framework\Stdlib\String $string, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Escaper $escaper, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Variable\Model\VariableFactory $coreVariableFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\View\LayoutInterface $layout, \Magento\Framework\View\LayoutFactory $layoutFactory, \Magento\Framework\App\State $appState, \Magento\Backend\Model\UrlInterface $backendUrlBuilder, \Pelago\Emogrifier $emogrifier, $variables = []) { $this->_escaper = $escaper; $this->_assetRepo = $assetRepo; $this->_logger = $logger; $this->_scopeConfig = $scopeConfig; $this->_modifiers['escape'] = [$this, 'modifierEscape']; $this->_variableFactory = $coreVariableFactory; $this->_storeManager = $storeManager; $this->_layout = $layout; $this->_layoutFactory = $layoutFactory; $this->_appState = $appState; $this->backendUrlBuilder = $backendUrlBuilder; $this->emogrifier = $emogrifier; parent::__construct($string, $variables); }
/** * @param \Magento\Framework\Stdlib\StringUtils $string * @param \Magento\Store\Model\StoreManagerInterface $storeManager * @param \Magento\Framework\View\Asset\Repository $assetRepo * @param array $variables */ public function __construct(\Magento\Framework\Stdlib\StringUtils $string, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\View\Asset\Repository $assetRepo, $variables = []) { $this->_storeManager = $storeManager; $this->_assetRepo = $assetRepo; parent::__construct($string, $variables); }