public function __construct(\Magento\Framework\Module\Dir $dir, \Magento\Backend\Model\UrlInterface $urlBuilder, \Magento\Framework\Stdlib\DateTime\DateTime $localeDate, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Framework\App\Helper\Context $context) { $this->dir = $dir; $this->urlBuilder = $urlBuilder; $this->localeDate = $localeDate; parent::__construct($helperFactory, $context); }
public function __construct(\Ess\M2ePro\Model\Config\Manager\Cache $cacheConfig, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\App\ResourceConnection $resource, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Framework\App\Helper\Context $context) { $this->cacheConfig = $cacheConfig; $this->filesystem = $filesystem; $this->resource = $resource; parent::__construct($helperFactory, $context); }
public function __construct(\Magento\Catalog\Model\ResourceModel\Product $productResource, \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $attributeColFactory, \Magento\Eav\Model\ResourceModel\Entity\Attribute\CollectionFactory $eavEntityAttributeColFactory, \Magento\Eav\Model\Config $eavConfig, \Magento\Framework\App\ResourceConnection $resourceConnection, \Magento\Framework\ObjectManagerInterface $objectManager, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Framework\App\Helper\Context $context) { $this->productResource = $productResource; $this->attributeColFactory = $attributeColFactory; $this->eavEntityAttributeColFactory = $eavEntityAttributeColFactory; $this->eavConfig = $eavConfig; $this->resourceConnection = $resourceConnection; parent::__construct($objectManager, $helperFactory, $context); }
public function __construct(\Ess\M2ePro\Model\Config\Manager\Module $moduleConfig, \Ess\M2ePro\Model\Config\Manager\Cache $cacheConfig, \Ess\M2ePro\Model\Config\Manager\Primary $primaryConfig, \Magento\Framework\Module\ModuleListInterface $moduleList, \Magento\Framework\Stdlib\Cookie\CookieMetadataFactory $cookieMetadataFactory, \Magento\Framework\Stdlib\CookieManagerInterface $cookieManager, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Framework\App\Helper\Context $context) { $this->moduleConfig = $moduleConfig; $this->cacheConfig = $cacheConfig; $this->primaryConfig = $primaryConfig; $this->moduleList = $moduleList; $this->cookieMetadataFactory = $cookieMetadataFactory; $this->cookieManager = $cookieManager; parent::__construct($helperFactory, $context); }
/** * @covers Xmf\Module\Helper\AbstractHelper::addLog */ public function testAddLog() { $this->assertTrue(method_exists($this->object, 'addLog')); $this->object->addLog('message to send to bitbucket'); }
/** * Creates a Google Map API helper. */ public function __construct() { parent::__construct(); $this->loaded = false; }
protected function renderDropdown(\Zend\Navigation\Page\AbstractPage $page, $renderIcons = true, $activeIconInverse = true, array $options = array()) { $class = $page->getClass(); $this->addWord('btn', $class); if ($page->isActive(true)) { $this->addWord('active', $class); } $page->setClass($class); $html = parent::renderDropdown($page, $renderIcons, $activeIconInverse, $options); return $html; }
/** * __invoke * * Summaries for methods should use 3rd person declarative rather * than 2nd person imperative, beginning with a verb phrase. * * @param mixed $href DESCRIPTION * @param mixed $txt DESCRIPTION * @param mixed $attr DESCRIPTION * * @return mixed * * @access public */ public function __invoke($href, $txt = null, $attr = []) { $attr = array_merge_recursive($attr, ['href' => $href]); $txt = $txt ?: $this->shortenUrl($href); return parent::__invoke($txt, $attr, $this->tag); }