コード例 #1
0
ファイル: Block.php プロジェクト: kidaa30/magento2-platformsh
 /**
  * Construct
  *
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Cms\Model\Template\FilterProvider $filterProvider
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Cms\Model\BlockFactory $blockFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Cms\Model\Template\FilterProvider $filterProvider, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Cms\Model\BlockFactory $blockFactory, array $data = [])
 {
     parent::__construct($context, $data);
     $this->_filterProvider = $filterProvider;
     $this->_storeManager = $storeManager;
     $this->_blockFactory = $blockFactory;
 }
コード例 #2
0
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param Registry $registry
  * @param \Magento\Framework\Data\Form $form
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, Registry $registry, \Magento\Framework\Data\Form $form, $data = [])
 {
     $this->storeManager = $storeManager;
     $this->registry = $registry;
     $this->form = $form;
     parent::__construct($context, $data);
 }
コード例 #3
0
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param RequireJsConfig $config
  * @param \Magento\Framework\View\Page\Config $pageConfig
  * @param \Magento\Translation\Model\FileManager $fileManager
  * @param Inline $inline
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\View\Page\Config $pageConfig, \Magento\Translation\Model\FileManager $fileManager, Inline $inline, array $data = [])
 {
     parent::__construct($context, $data);
     $this->pageConfig = $pageConfig;
     $this->fileManager = $fileManager;
     $this->inline = $inline;
 }
コード例 #4
0
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\HTTP\ZendClientFactory $clientFactory, \Psr\Log\LoggerInterface $logger, array $data = [])
 {
     $this->_isScopePrivate = true;
     $this->_clientFactory = $clientFactory;
     $this->_logger = $logger;
     parent::__construct($context, $data);
 }
コード例 #5
0
ファイル: Config.php プロジェクト: opexsw/magento2
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param RequireJsConfig $config
  * @param \Magento\RequireJs\Model\FileManager $fileManager
  * @param \Magento\Framework\View\Page\Config $pageConfig
  * @param \Magento\Framework\View\Asset\ConfigInterface $bundleConfig
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, RequireJsConfig $config, \Magento\RequireJs\Model\FileManager $fileManager, \Magento\Framework\View\Page\Config $pageConfig, \Magento\Framework\View\Asset\ConfigInterface $bundleConfig, array $data = [])
 {
     parent::__construct($context, $data);
     $this->config = $config;
     $this->fileManager = $fileManager;
     $this->pageConfig = $pageConfig;
     $this->bundleConfig = $bundleConfig;
 }
コード例 #6
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\SalesRule\Model\Rss\Discounts $rssModel
  * @param \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\SalesRule\Model\Rss\Discounts $rssModel, \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder, array $data = [])
 {
     $this->storeManager = $context->getStoreManager();
     $this->rssModel = $rssModel;
     $this->httpContext = $httpContext;
     $this->rssUrlBuilder = $rssUrlBuilder;
     parent::__construct($context, $data);
 }
コード例 #7
0
ファイル: Redirect.php プロジェクト: aiesh/magento2
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Framework\Data\Form\Element\Factory $elementFactory
  * @param \Magento\Paypal\Model\StandardFactory $paypalStandardFactory
  * @param \Magento\Framework\Math\Random $mathRandom
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\Data\Form\Element\Factory $elementFactory, \Magento\Paypal\Model\StandardFactory $paypalStandardFactory, \Magento\Framework\Math\Random $mathRandom, array $data = array())
 {
     $this->_formFactory = $formFactory;
     $this->_elementFactory = $elementFactory;
     $this->_paypalStandardFactory = $paypalStandardFactory;
     $this->mathRandom = $mathRandom;
     parent::__construct($context, $data);
 }
コード例 #8
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Helper\Image $imageHelper
  * @param \Magento\Catalog\Model\Rss\Product\NewProducts $rssModel
  * @param \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Image $imageHelper, \Magento\Catalog\Model\Rss\Product\NewProducts $rssModel, \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder, array $data = [])
 {
     $this->imageHelper = $imageHelper;
     $this->rssModel = $rssModel;
     $this->rssUrlBuilder = $rssUrlBuilder;
     $this->storeManager = $context->getStoreManager();
     parent::__construct($context, $data);
 }
コード例 #9
0
ファイル: Rss.php プロジェクト: pleminh/Gemtoo
 /**
  * @param RssModel $rssModel
  * @param Url $urlModel
  * @param CollectionFactory $articleCollectionFactory
  * @param StoreManagerInterface $storeManager
  * @param Context $context
  * @param array $data
  */
 public function __construct(RssModel $rssModel, Url $urlModel, CollectionFactory $articleCollectionFactory, StoreManagerInterface $storeManager, Context $context, array $data = [])
 {
     $this->rssModel = $rssModel;
     $this->urlModel = $urlModel;
     $this->articleCollectionFactory = $articleCollectionFactory;
     $this->storeManager = $storeManager;
     parent::__construct($context, $data);
 }
コード例 #10
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Helper\Image $imageHelper
  * @param \Magento\Catalog\Model\Rss\Product\NewProducts $rssModel
  * @param \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Mageplaza\Blog\Model\CategoryFactory $rssModel, \Mageplaza\Blog\Helper\Data $helper, \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder, array $data = [])
 {
     $this->helper = $helper;
     $this->rssModel = $rssModel;
     $this->rssUrlBuilder = $rssUrlBuilder;
     $this->storeManager = $context->getStoreManager();
     parent::__construct($context, $data);
 }
コード例 #11
0
 /**
  * Constructor
  *
  * @param \Magento\Framework\View\Element\Context $context
  * @param ElementFactory $elementFactory
  * @param \Magento\Directory\Model\CountryFactory $countryFactory ,
  * @param \Magento\Customer\Model\Address\Converter $addressConverter
  * @param \Magento\Customer\Service\V1\CustomerMetadataServiceInterface $metadataService
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, ElementFactory $elementFactory, \Magento\Directory\Model\CountryFactory $countryFactory, \Magento\Customer\Model\Address\Converter $addressConverter, \Magento\Customer\Service\V1\CustomerMetadataServiceInterface $metadataService, array $data = array())
 {
     $this->_elementFactory = $elementFactory;
     $this->_addressConverter = $addressConverter;
     $this->_countryFactory = $countryFactory;
     $this->_metadataService = $metadataService;
     parent::__construct($context, $data);
     $this->_isScopePrivate = true;
 }
コード例 #12
0
 /**
  * Constructor
  *
  * @param \Magento\Framework\View\Element\Context $context
  * @param ElementFactory $elementFactory
  * @param \Magento\Directory\Model\CountryFactory $countryFactory
  * @param \Magento\Customer\Api\AddressMetadataInterface $metadataService
  * @param Mapper $addressMapper
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, ElementFactory $elementFactory, \Magento\Directory\Model\CountryFactory $countryFactory, \Magento\Customer\Api\AddressMetadataInterface $metadataService, Mapper $addressMapper, array $data = [])
 {
     $this->_elementFactory = $elementFactory;
     $this->_countryFactory = $countryFactory;
     $this->_addressMetadataService = $metadataService;
     $this->addressMapper = $addressMapper;
     parent::__construct($context, $data);
     $this->_isScopePrivate = true;
 }
コード例 #13
0
ファイル: Page.php プロジェクト: Atlis/docker-magento2
 /**
  * Construct
  *
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Cms\Model\Page $page
  * @param \Magento\Cms\Model\Template\FilterProvider $filterProvider
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Cms\Model\PageFactory $pageFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Cms\Model\Page $page, \Magento\Cms\Model\Template\FilterProvider $filterProvider, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Cms\Model\PageFactory $pageFactory, array $data = array())
 {
     parent::__construct($context, $data);
     // used singleton (instead factory) because there exist dependencies on \Magento\Cms\Helper\Page
     $this->_page = $page;
     $this->_filterProvider = $filterProvider;
     $this->_storeManager = $storeManager;
     $this->_pageFactory = $pageFactory;
 }
コード例 #14
0
ファイル: Category.php プロジェクト: tingyeeh/magento2
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory
  * @param \Magento\Catalog\Model\Rss\Category $rssModel
  * @param \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder
  * @param \Magento\Catalog\Helper\Image $imageHelper
  * @param \Magento\Customer\Model\Session $customerSession
  * @param CategoryRepositoryInterface $categoryRepository
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\Catalog\Model\Rss\Category $rssModel, \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder, \Magento\Catalog\Helper\Image $imageHelper, \Magento\Customer\Model\Session $customerSession, CategoryRepositoryInterface $categoryRepository, array $data = [])
 {
     $this->imageHelper = $imageHelper;
     $this->categoryFactory = $categoryFactory;
     $this->customerSession = $customerSession;
     $this->rssModel = $rssModel;
     $this->rssUrlBuilder = $rssUrlBuilder;
     $this->storeManager = $context->getStoreManager();
     $this->categoryRepository = $categoryRepository;
     parent::__construct($context, $data);
 }
コード例 #15
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Helper\Image $imageHelper
  * @param \Magento\Catalog\Helper\Output $outputHelper
  * @param \Magento\Msrp\Helper\Data $msrpHelper
  * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
  * @param \Magento\Catalog\Model\Rss\Product\Special $rssModel
  * @param \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder
  * @param \Magento\Framework\Locale\ResolverInterface $localeResolver
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Helper\Image $imageHelper, \Magento\Catalog\Helper\Output $outputHelper, \Magento\Msrp\Helper\Data $msrpHelper, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, \Magento\Catalog\Model\Rss\Product\Special $rssModel, \Magento\Framework\App\Rss\UrlBuilderInterface $rssUrlBuilder, \Magento\Framework\Locale\ResolverInterface $localeResolver, array $data = [])
 {
     $this->outputHelper = $outputHelper;
     $this->imageHelper = $imageHelper;
     $this->rssModel = $rssModel;
     $this->rssUrlBuilder = $rssUrlBuilder;
     $this->priceCurrency = $priceCurrency;
     $this->msrpHelper = $msrpHelper;
     $this->httpContext = $httpContext;
     $this->storeManager = $context->getStoreManager();
     parent::__construct($context, $data);
     $this->localeResolver = $localeResolver;
 }
コード例 #16
0
 /**
  * Rate constructor.
  * @param Context $context
  * @param ClientFactory $clientFactory
  * @param Logger $logger
  * @param array $data
  */
 public function __construct(Context $context, ClientFactory $clientFactory, Logger $logger, array $data)
 {
     $this->_clientFactory = $clientFactory;
     $this->_logger = $logger;
     parent::__construct($context, $data);
 }
コード例 #17
0
ファイル: Body.php プロジェクト: aiesh/magento2
 /**
  * Construct
  *
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Framework\View\Page\Config $pageConfig
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\View\Page\Config $pageConfig, array $data = array())
 {
     $this->pageConfig = $pageConfig;
     parent::__construct($context, $data);
 }
コード例 #18
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, array $data = [])
 {
     parent::__construct($context, $data);
     $this->_authorization = $context->getAuthorization();
 }
コード例 #19
0
ファイル: Editable.php プロジェクト: pradeep-wagento/magento2
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Framework\Translate\InlineInterface $inlineTranslate
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\Translate\InlineInterface $inlineTranslate, array $data = [])
 {
     $this->inlineTranslate = $inlineTranslate;
     parent::__construct($context, $data);
 }
コード例 #20
0
 /**
  * Construct block FreeGeo Ip
  *
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Customer\Model\Session $session
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Customer\Model\Session $session, array $data = [])
 {
     $this->_customerSession = $session;
     $this->_isScopePrivate = true;
     parent::__construct($context, $data);
 }
コード例 #21
0
ファイル: Template.php プロジェクト: kid17/magento2
 /**
  * Constructor
  *
  * @param Template\Context $context
  * @param array $data
  */
 public function __construct(Template\Context $context, array $data = [])
 {
     $this->_filesystem = $context->getFilesystem();
     $this->_viewFileSystem = $context->getViewFileSystem();
     $this->templateEnginePool = $context->getEnginePool();
     $this->_storeManager = $context->getStoreManager();
     $this->_appState = $context->getAppState();
     $this->templateContext = $this;
     $this->pageConfig = $context->getPageConfig();
     parent::__construct($context, $data);
 }
コード例 #22
0
ファイル: FormKey.php プロジェクト: Doability/magento2dev
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Framework\Data\Form\FormKey $formKey
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\Data\Form\FormKey $formKey, array $data = [])
 {
     $this->formKey = $formKey;
     parent::__construct($context, $data);
 }
コード例 #23
0
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Praxigento\JiraFeedback\Helper\Data $jiraFeedbackHelper)
 {
     parent::__construct($context);
     $this->jiraFeedbackHelper = $jiraFeedbackHelper;
 }
コード例 #24
0
ファイル: Config.php プロジェクト: aiesh/magento2
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Framework\RequireJs\Config $config
  * @param \Magento\RequireJs\Model\FileManager $fileManager
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\RequireJs\Config $config, \Magento\RequireJs\Model\FileManager $fileManager, array $data = array())
 {
     parent::__construct($context, $data);
     $this->config = $config;
     $this->fileManager = $fileManager;
 }
コード例 #25
0
 public function __construct(Context $context, Session $session, array $data)
 {
     $this->_customerSession = $session;
     parent::__construct($context, $data);
 }
コード例 #26
0
ファイル: Render.php プロジェクト: Atlis/docker-magento2
 /**
  * Constructor
  *
  * @param Template\Context $context
  * @param Layout $priceLayout
  * @param array $data
  */
 public function __construct(Template\Context $context, Layout $priceLayout, array $data = [])
 {
     $this->priceLayout = $priceLayout;
     parent::__construct($context, $data);
 }
コード例 #27
0
ファイル: Generic.php プロジェクト: baisoo/Yireo_NewRelic2
 /**
  * Constructor
  *
  * @param \Magento\Framework\View\Element\Context $context
  * @param array $data
  * @param \Yireo\NewRelic2\Helper\Data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, array $data = [], \Yireo\NewRelic2\Helper\Data $helper)
 {
     $rt = parent::__construct($context, $data);
     $this->helper = $helper;
     return $rt;
 }
コード例 #28
0
 public function __construct(Context $context, ZendClientFactory $clientUrl, array $data)
 {
     $this->_clientUrl = $clientUrl;
     parent::__construct($context, $data);
 }
コード例 #29
0
ファイル: SiteVerification.php プロジェクト: aiesh/magento2
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\GoogleShopping\Model\Config $config
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\GoogleShopping\Model\Config $config, array $data = array())
 {
     parent::__construct($context, $data);
     $this->_config = $config;
 }