/** * Constructor * * @param Filesystem $filesystem * @param Repository $assetRepository * @param Temporary $temporaryFile * @param Publisher $assetPublisher * @param ScopeConfigInterface $scopeConfig * @param bool $hasRelatedPublishing */ public function __construct(Filesystem $filesystem, Repository $assetRepository, Temporary $temporaryFile, Publisher $assetPublisher, ScopeConfigInterface $scopeConfig, $hasRelatedPublishing = false) { parent::__construct($filesystem, $assetRepository, $temporaryFile); $this->assetPublisher = $assetPublisher; $this->scopeConfig = $scopeConfig; $this->hasRelatedPublishing = $hasRelatedPublishing; }
/** * @param \Magento\Framework\Filesystem $filesystem * @param \Magento\Framework\View\Asset\Repository $assetRepo * @param \Magento\Framework\Css\PreProcessor\File\Temporary $temporaryFile * @param \Magento\Framework\App\View\Asset\Publisher $publisher */ public function __construct(\Magento\Framework\Filesystem $filesystem, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\Css\PreProcessor\File\Temporary $temporaryFile, \Magento\Framework\App\View\Asset\Publisher $publisher) { parent::__construct($filesystem, $assetRepo, $temporaryFile); $this->publisher = $publisher; }