当前位置: 首页>>代码示例>>PHP>>正文


PHP Context::getStoreManager方法代码示例

本文整理汇总了PHP中Magento\Framework\View\Element\Template\Context::getStoreManager方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::getStoreManager方法的具体用法?PHP Context::getStoreManager怎么用?PHP Context::getStoreManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Magento\Framework\View\Element\Template\Context的用法示例。


在下文中一共展示了Context::getStoreManager方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * @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);
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:15,代码来源:Discounts.php

示例2: __construct

 /**
  * @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);
 }
开发者ID:mageplaza,项目名称:magento-2-blog-extension,代码行数:15,代码来源:Category.php

示例3: __construct

 /**
  * @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);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:15,代码来源:NewProducts.php

示例4: __construct

 /**
  * Constructor
  *
  * @param Context         $context
  * @param Config          $config
  * @param FormatInterface $localeFormat
  * @param SearchHelper    $searchHelper
  */
 public function __construct(Context $context, Config $config, FormatInterface $localeFormat, SearchHelper $searchHelper)
 {
     $this->storeManager = $context->getStoreManager();
     $this->config = $config;
     $this->localeFormat = $localeFormat;
     $this->searchHelper = $searchHelper;
     parent::__construct($context);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:16,代码来源:Injection.php

示例5: __construct

 /**
  * @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);
 }
开发者ID:tingyeeh,项目名称:magento2,代码行数:22,代码来源:Category.php

示例6: __construct

 /**
  * @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;
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:26,代码来源:Special.php

示例7: __construct

 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Riskified\Decider\Api\Config $apiConfig, \Magento\Framework\Session\SessionManagerInterface $session, array $data = [])
 {
     $this->validator = $context->getValidator();
     $this->resolver = $context->getResolver();
     $this->_filesystem = $context->getFilesystem();
     $this->templateEnginePool = $context->getEnginePool();
     $this->_storeManager = $context->getStoreManager();
     $this->_appState = $context->getAppState();
     $this->templateContext = $this;
     $this->pageConfig = $context->getPageConfig();
     $this->apiConfig = $apiConfig;
     $this->session = $session;
     parent::__construct($context, $data);
 }
开发者ID:Riskified,项目名称:magento2,代码行数:14,代码来源:Js.php

示例8: __construct

 public function __construct(\Stepzerosolutions\Tbslider\Model\Image $imageprocessor, \Magento\Framework\View\Element\Template\Context $context)
 {
     $this->_imageprocessor = $imageprocessor;
     $this->_storeManager = $context->getStoreManager();
 }
开发者ID:stepzerosolutions,项目名称:tbslider,代码行数:5,代码来源:Image.php

示例9: __construct

 /**
  * Category constructor.
  *
  * @param CatalogCategoryFactory $categoryFactory
  * @param ObjectManagerInterface $objectManager
  * @param Context                $context
  * @param array                  $data
  */
 public function __construct(CatalogCategoryFactory $categoryFactory, ObjectManagerInterface $objectManager, Context $context, array $data = [])
 {
     $this->storeManager = $context->getStoreManager();
     $this->categoryFactory = $categoryFactory;
     parent::__construct($context, $objectManager, $data);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:14,代码来源:Category.php

示例10: __construct

 /**
  * 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);
 }
开发者ID:kid17,项目名称:magento2,代码行数:17,代码来源:Template.php


注:本文中的Magento\Framework\View\Element\Template\Context::getStoreManager方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。