コード例 #1
0
ファイル: Type.php プロジェクト: pradeep-wagento/magento2
 /**
  * @param \Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool
  */
 public function __construct(\Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool)
 {
     parent::__construct($cacheFrontendPool->get(self::TYPE_IDENTIFIER), self::CACHE_TAG);
 }
コード例 #2
0
ファイル: Webapi.php プロジェクト: Doability/magento2dev
 /**
  * @param \Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool
  * @param StoreManagerInterface $storeManager
  * @param UserContextInterface $userContext
  */
 public function __construct(\Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool, StoreManagerInterface $storeManager, UserContextInterface $userContext)
 {
     $this->storeManager = $storeManager;
     $this->userContext = $userContext;
     parent::__construct($cacheFrontendPool->get(self::TYPE_IDENTIFIER), self::CACHE_TAG);
 }
コード例 #3
0
 /**
  * @param FrontendPool $cacheFrontendPool
  */
 public function __construct(FrontendPool $cacheFrontendPool)
 {
     parent::__construct($cacheFrontendPool->get(self::TYPE_IDENTIFIER), self::CACHE_TAG);
 }
コード例 #4
0
ファイル: Type.php プロジェクト: kidaa30/magento2-platformsh
 /**
  * @param \Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  */
 public function __construct(\Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool, \Magento\Framework\Event\ManagerInterface $eventManager)
 {
     parent::__construct($cacheFrontendPool->get(self::TYPE_IDENTIFIER), self::CACHE_TAG);
     $this->eventManager = $eventManager;
 }