mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
30 lines
855 B
PHP
30 lines
855 B
PHP
<?php
|
|
/**
|
|
* Customer session storage
|
|
*
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Customer\Model\Session;
|
|
|
|
class Storage extends \Magento\Framework\Session\Storage
|
|
{
|
|
/**
|
|
* @param \Magento\Customer\Model\Config\Share $configShare
|
|
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
|
|
* @param string $namespace
|
|
* @param array $data
|
|
*/
|
|
public function __construct(
|
|
\Magento\Customer\Model\Config\Share $configShare,
|
|
\Magento\Store\Model\StoreManagerInterface $storeManager,
|
|
$namespace = 'customer',
|
|
array $data = []
|
|
) {
|
|
if ($configShare->isWebsiteScope()) {
|
|
$namespace .= '_' . $storeManager->getWebsite()->getCode();
|
|
}
|
|
parent::__construct($namespace, $data);
|
|
}
|
|
}
|