Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Storage.php
Go to the documentation of this file.
1 <?php
9 
11 {
18  public function __construct(
19  \Magento\Customer\Model\Config\Share $configShare,
21  $namespace = 'customer',
22  array $data = []
23  ) {
24  if ($configShare->isWebsiteScope()) {
25  $namespace .= '_' . $storeManager->getWebsite()->getCode();
26  }
27  parent::__construct($namespace, $data);
28  }
29 }
$storeManager
__construct(\Magento\Customer\Model\Config\Share $configShare, \Magento\Store\Model\StoreManagerInterface $storeManager, $namespace='customer', array $data=[])
Definition: Storage.php:18