Example #1
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\RecurringPayment\Model\Resource\Payment\CollectionFactory $recurringPaymentCollectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Customer\Model\Session $customerSession, \Magento\RecurringPayment\Model\Resource\Payment\CollectionFactory $recurringPaymentCollectionFactory, array $data = array())
 {
     $this->_checkoutSession = $checkoutSession;
     $this->_customerSession = $customerSession;
     $this->_recurringPaymentCollectionFactory = $recurringPaymentCollectionFactory;
     parent::__construct($context, $data);
 }
Example #2
0
 /**
  * @param Template\Context $context
  * @param \Magento\Catalog\Model\Layer\Resolver $layerResolver
  * @param \Magento\Catalog\Model\Layer\FilterList $filterList
  * @param \Magento\Catalog\Model\Layer\AvailabilityFlagInterface $visibilityFlag
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Model\Layer\Resolver $layerResolver, \Magento\Catalog\Model\Layer\FilterList $filterList, \Magento\Catalog\Model\Layer\AvailabilityFlagInterface $visibilityFlag, array $data = [])
 {
     $this->_catalogLayer = $layerResolver->get();
     $this->filterList = $filterList;
     $this->visibilityFlag = $visibilityFlag;
     parent::__construct($context, $data);
 }
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\CatalogInventory\Api\StockStateInterface $stockState
  * @param \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\CatalogInventory\Api\StockStateInterface $stockState, \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry, array $data = [])
 {
     $this->_coreRegistry = $registry;
     $this->stockState = $stockState;
     $this->stockRegistry = $stockRegistry;
     parent::__construct($context, $data);
 }
Example #4
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Wishlist\Helper\Data $wishlistData
  * @param \Magento\Wishlist\Model\Config $wishlistConfig
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Wishlist\Helper\Data $wishlistData, \Magento\Wishlist\Model\Config $wishlistConfig, array $data = [])
 {
     $this->_wishlistData = $wishlistData;
     $this->_wishlistConfig = $wishlistConfig;
     parent::__construct($context, $data);
     $this->_isScopePrivate = true;
 }
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Helper\Category $categoryHelper
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Category $categoryHelper, \Magento\Catalog\Model\Indexer\Category\Flat\State $categoryFlatState, \Magento\Theme\Block\Html\Topmenu $topMenu)
 {
     $this->_categoryHelper = $categoryHelper;
     $this->categoryFlatConfig = $categoryFlatState;
     $this->topMenu = $topMenu;
     parent::__construct($context);
 }
Example #6
0
 public function __construct(\Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\ObjectManagerInterface $objectManagerInterface, \Magento\Backend\Block\Template\Context $context)
 {
     $data = [];
     $this->_helper = $helper;
     $this->_objectManager = $objectManagerInterface;
     parent::__construct($context, $data);
 }
Example #7
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Sales\Model\Order\Config $orderConfig
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory, \Magento\Customer\Model\Session $customerSession, \Magento\Sales\Model\Order\Config $orderConfig, array $data = [])
 {
     $this->_orderCollectionFactory = $orderCollectionFactory;
     $this->_customerSession = $customerSession;
     $this->_orderConfig = $orderConfig;
     parent::__construct($context, $data);
 }
Example #8
0
 /**
  * PHP Constructor
  *
  * @param \Magento\Framework\View\Element\Template\Context $context       App context
  * @param \Magento\Framework\Json\Helper\Data              $jsonHelper    The Magento's JSON Helper
  * @param \Smile\ElasticsuiteTracker\Helper\Data           $trackerHelper The Smile Tracker helper
  * @param \Magento\Framework\Registry                      $registry      The Magento registry
  * @param array                                            $data          additional datas
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Json\Helper\Data $jsonHelper, \Smile\ElasticsuiteTracker\Helper\Data $trackerHelper, \Magento\Framework\Registry $registry, array $data = [])
 {
     parent::__construct($context, $data);
     $this->jsonHelper = $jsonHelper;
     $this->trackerHelper = $trackerHelper;
     $this->registry = $registry;
 }
 /**
  * @param \Inchoo\SocialConnect\Model\Facebook\Oauth2\Client $clientFacebook
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param array $data
  */
 public function __construct(\Inchoo\SocialConnect\Model\Facebook\Oauth2\Client $clientFacebook, \Magento\Framework\Registry $registry, \Magento\Customer\Model\Session $customerSession, \Magento\Framework\View\Element\Template\Context $context, array $data = array())
 {
     $this->_clientFacebook = $clientFacebook;
     $this->_registry = $registry;
     $this->_customerSession = $customerSession;
     parent::__construct($context, $data);
 }
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param array $data
  * @codeCoverageIgnore
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Catalog\Model\Session $catalogSession, \Magento\Checkout\Model\Session $checkoutSession, array $data = [])
 {
     $this->_orderFactory = $orderFactory;
     $this->_catalogSession = $catalogSession;
     $this->_checkoutSession = $checkoutSession;
     parent::__construct($context, $data);
 }
Example #11
0
 /**
  * @param Template\Context  $context
  * @param SaleableInterface $saleableItem
  * @param PriceInterface    $price
  * @param RendererPool      $rendererPool
  * @param array             $data
  */
 public function __construct(Template\Context $context, SaleableInterface $saleableItem, PriceInterface $price, RendererPool $rendererPool, array $data = [])
 {
     $this->saleableItem = $saleableItem;
     $this->price = $price;
     $this->rendererPool = $rendererPool;
     parent::__construct($context, $data);
 }
Example #12
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Helper\Address $addressHelper
  * @param CustomerMetadataInterface $customerMetadata
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Helper\Address $addressHelper, CustomerMetadataInterface $customerMetadata, array $data = [])
 {
     $this->_addressHelper = $addressHelper;
     $this->customerMetadata = $customerMetadata;
     parent::__construct($context, $data);
     $this->_isScopePrivate = true;
 }
 /**
  * @param \Ced\DevTool\Block\Context $context
  * @param \Magento\Framework\UrlFactory $urlFactory
  */
 public function __construct(\Ced\DevTool\Block\Context $context, UrlFactory $urlFactory)
 {
     $this->_devToolHelper = $context->getDevToolHelper();
     $this->_config = $context->getConfig();
     $this->_urlApp = $urlFactory->create();
     parent::__construct($context);
 }
Example #14
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Rss\Model\RssFactory $rssFactory
  * @param \Magento\Rss\Model\Resource\OrderFactory $orderFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Rss\Model\RssFactory $rssFactory, \Magento\Rss\Model\Resource\OrderFactory $orderFactory, array $data = array())
 {
     $this->_coreRegistry = $registry;
     $this->_rssFactory = $rssFactory;
     $this->_orderFactory = $orderFactory;
     parent::__construct($context, $data);
 }
Example #15
0
 /**
  * {@inheritdoc}
  * @param Context     $context
  * @param QueryHelper $queryHelper
  * @param TextHelper  $textHelper
  * @param UrlFactory  $urlFactory
  */
 public function __construct(Context $context, QueryHelper $queryHelper, TextHelper $textHelper, UrlFactory $urlFactory)
 {
     $this->query = $queryHelper;
     $this->urlFactory = $urlFactory;
     $this->text = $textHelper;
     parent::__construct($context);
 }
Example #16
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, array $data = [])
 {
     $this->_customerSession = $customerSession;
     $this->_checkoutSession = $checkoutSession;
     parent::__construct($context, $data);
     $this->_isScopePrivate = true;
 }
Example #17
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Tax\Helper\Data $taxHelper
  * @param \Magento\Customer\Model\Address\Config $addressConfig
  * @param PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Tax\Helper\Data $taxHelper, \Magento\Customer\Model\Address\Config $addressConfig, PriceCurrencyInterface $priceCurrency, array $data = [])
 {
     $this->priceCurrency = $priceCurrency;
     $this->_taxHelper = $taxHelper;
     $this->_addressConfig = $addressConfig;
     parent::__construct($context, $data);
 }
Example #18
0
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Ktpl\Testimonial\Model\testimonialFactory $testimonialFactory, \Magento\Framework\App\Config\ScopeConfigInterface $config, \Ktpl\Testimonial\Model\System\Config\Source\Testimonialsort $testimonialSort, array $data = [])
 {
     $this->_testimonialFactory = $testimonialFactory;
     $this->_config = $config;
     $this->_testimonialSort = $testimonialSort;
     parent::__construct($context, $data);
 }
Example #19
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Wishlist\Helper\Data $wishlistHelper
  * @param \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder
  * @param \Magento\Framework\Url\EncoderInterface $urlEncoder
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Wishlist\Helper\Data $wishlistHelper, \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder, \Magento\Framework\Url\EncoderInterface $urlEncoder, array $data = [])
 {
     parent::__construct($context, $data);
     $this->wishlistHelper = $wishlistHelper;
     $this->rssUrlBuilder = $rssUrlBuilder;
     $this->urlEncoder = $urlEncoder;
 }
Example #20
0
 /**
  * @param \Training\Test\Block\Context $context
  * @param \Magento\Framework\UrlFactory $urlFactory
  */
 public function __construct(\Training\Test\Block\Context $context)
 {
     $this->_devToolHelper = $context->getTestHelper();
     $this->_config = $context->getConfig();
     $this->_urlApp = $context->getUrlFactory()->create();
     parent::__construct($context);
 }
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\Filter\Input\MaliciousCode $maliciousCode
  * @param PriceCurrencyInterface $priceCurrency
  * @param \Magento\Catalog\Helper\Image $imageHelper
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Filter\Input\MaliciousCode $maliciousCode, PriceCurrencyInterface $priceCurrency, \Magento\Catalog\Helper\Image $imageHelper, array $data = [])
 {
     $this->imageHelper = $imageHelper;
     $this->priceCurrency = $priceCurrency;
     $this->_maliciousCode = $maliciousCode;
     parent::__construct($context, $data);
 }
Example #22
0
 /**
  * Constructor
  *
  * @param TemplateContext $context
  * @param UiComponentInterface $component
  * @param BlockFactory $blockWrapperFactory
  * @param array $data
  */
 public function __construct(TemplateContext $context, UiComponentInterface $component, BlockFactory $blockWrapperFactory, array $data = [])
 {
     $this->component = $component;
     $this->blockWrapperFactory = $blockWrapperFactory;
     $this->setNameInLayout($this->component->getName());
     parent::__construct($context, $data);
 }
Example #23
0
 /**
  * Initialize dependencies
  *
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Store\Model\StoreFactory $storeFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Tax\Service\V1\TaxRateServiceInterface $taxRateService
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Store\Model\StoreFactory $storeFactory, \Magento\Framework\Registry $coreRegistry, \Magento\Tax\Service\V1\TaxRateServiceInterface $taxRateService, array $data = array())
 {
     $this->_coreRegistry = $coreRegistry;
     $this->_taxRateService = $taxRateService;
     $this->_storeFactory = $storeFactory;
     parent::__construct($context, $data);
 }
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $setColFactory
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Catalog\Model\ResourceModel\Helper $resourceHelper
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $setColFactory, \Magento\Framework\Registry $registry, \Magento\Catalog\Model\ResourceModel\Helper $resourceHelper, array $data = [])
 {
     $this->_setColFactory = $setColFactory;
     $this->_coreRegistry = $registry;
     $this->_resourceHelper = $resourceHelper;
     parent::__construct($context, $data);
 }
Example #25
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(Registry $registry, BlockFactory $blockFactory, Context $context, array $data = array())
 {
     $this->coreRegistry = $registry;
     $this->blockFactory = $blockFactory;
     parent::__construct($context, $data);
     $this->setTabTitle();
 }
Example #26
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Review\Model\Resource\Review\CollectionFactory $collectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Review\Model\Resource\Review\CollectionFactory $collectionFactory, array $data = [])
 {
     $this->_coreRegistry = $registry;
     $this->_reviewsColFactory = $collectionFactory;
     parent::__construct($context, $data);
     $this->setTabTitle();
 }
Example #27
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\App\Http\Context $httpContext, array $data = [])
 {
     $this->_coreRegistry = $registry;
     $this->httpContext = $httpContext;
     parent::__construct($context, $data);
     $this->_isScopePrivate = true;
 }
Example #28
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer
  * @param \Magento\Downloadable\Model\Resource\Link\Purchased\CollectionFactory $linksFactory
  * @param \Magento\Downloadable\Model\Resource\Link\Purchased\Item\CollectionFactory $itemsFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, \Magento\Downloadable\Model\Resource\Link\Purchased\CollectionFactory $linksFactory, \Magento\Downloadable\Model\Resource\Link\Purchased\Item\CollectionFactory $itemsFactory, array $data = [])
 {
     $this->currentCustomer = $currentCustomer;
     $this->_linksFactory = $linksFactory;
     $this->_itemsFactory = $itemsFactory;
     parent::__construct($context, $data);
 }
Example #29
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\ProductAlert\Helper\Data $helper
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\Helper\PostHelper $coreHelper
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\ProductAlert\Helper\Data $helper, \Magento\Framework\Registry $registry, \Magento\Framework\Data\Helper\PostHelper $coreHelper, array $data = [])
 {
     parent::__construct($context, $data);
     $this->_registry = $registry;
     $this->_helper = $helper;
     $this->coreHelper = $coreHelper;
 }
Example #30
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Sales\Model\Resource\Order\Invoice\Comment\CollectionFactory $invoiceCollectionFactory
  * @param \Magento\Sales\Model\Resource\Order\Creditmemo\Comment\CollectionFactory $memoCollectionFactory
  * @param \Magento\Sales\Model\Resource\Order\Shipment\Comment\CollectionFactory $shipmentCollectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Sales\Model\Resource\Order\Invoice\Comment\CollectionFactory $invoiceCollectionFactory, \Magento\Sales\Model\Resource\Order\Creditmemo\Comment\CollectionFactory $memoCollectionFactory, \Magento\Sales\Model\Resource\Order\Shipment\Comment\CollectionFactory $shipmentCollectionFactory, array $data = [])
 {
     parent::__construct($context, $data);
     $this->_invoiceCollectionFactory = $invoiceCollectionFactory;
     $this->_memoCollectionFactory = $memoCollectionFactory;
     $this->_shipmentCollectionFactory = $shipmentCollectionFactory;
 }