Exemple #1
0
 /**
  * {@inheritdoc}
  *
  * @param UrlRewriteFactory           $urlRewriteFactory
  * @param UrlRewriteCollectionFactory $urlRewriteCollectionFactory
  * @param FilterManager               $filter
  * @param Context                     $context
  */
 public function __construct(UrlRewriteFactory $urlRewriteFactory, UrlRewriteCollectionFactory $urlRewriteCollectionFactory, FilterManager $filter, Context $context)
 {
     $this->urlRewriteFactory = $urlRewriteFactory;
     $this->urlRewriteCollectionFactory = $urlRewriteCollectionFactory;
     $this->filter = $filter;
     $this->urlManager = $context->getUrlBuilder();
     $this->scopeConfig = $context->getScopeConfig();
     parent::__construct($context);
 }
Exemple #2
0
 /**
  * @param \Magento\Framework\App\Helper\Context $context,
  * @param \Magento\Framework\Code\Minifier\Adapter\Css\CSSmin $cssMin,
  * @param \Magento\Framework\Code\Minifier\Adapter\Js\JShrink $jsMin,
  * @param \Magento\Store\Model\StoreManager $stores,
  * @param \Magento\Framework\View\Asset\Repository $assetRepo,
  * @param \Magento\Framework\Filesystem\DirectoryList $dir,
  * @param \Magento\Framework\Filesystem $filesystem,
  * @param \Magento\Framework\App\ResourceConnection $resource
  */
 public function __construct(\Magento\Framework\App\Helper\Context $context, \Magento\Framework\Code\Minifier\Adapter\Css\CSSmin $cssMin, \Magento\Framework\Code\Minifier\Adapter\Js\JShrink $jsMin, \Magento\Store\Model\StoreManager $stores, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\Filesystem\DirectoryList $dir, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\App\ResourceConnection $resource)
 {
     $this->_urlBuilder = $context->getUrlBuilder();
     $this->_cssMin = $cssMin;
     $this->_jsMin = $jsMin;
     $this->_stores = $stores;
     $this->_dir = $dir;
     $this->_assetRepo = $assetRepo;
     $this->_resource = $resource;
     $this->_log = $filesystem->getDirectoryWrite($dir::ROOT);
     parent::__construct($context);
 }