1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
namespace Magento\Store\Model\StoreCookieManager;
/**
* Interceptor class for @see \Magento\Store\Model\StoreCookieManager
*/
class Interceptor extends \Magento\Store\Model\StoreCookieManager implements \Magento\Framework\Interception\InterceptorInterface
{
use \Magento\Framework\Interception\Interceptor;
public function __construct(\Magento\Framework\Stdlib\Cookie\CookieMetadataFactory $cookieMetadataFactory, \Magento\Framework\Stdlib\CookieManagerInterface $cookieManager)
{
$this->___init();
parent::__construct($cookieMetadataFactory, $cookieManager);
}
/**
* {@inheritdoc}
*/
public function getStoreCodeFromCookie()
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getStoreCodeFromCookie');
if (!$pluginInfo) {
return parent::getStoreCodeFromCookie();
} else {
return $this->___callPlugins('getStoreCodeFromCookie', func_get_args(), $pluginInfo);
}
}
/**
* {@inheritdoc}
*/
public function setStoreCookie(\Magento\Store\Api\Data\StoreInterface $store)
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'setStoreCookie');
if (!$pluginInfo) {
return parent::setStoreCookie($store);
} else {
return $this->___callPlugins('setStoreCookie', func_get_args(), $pluginInfo);
}
}
/**
* {@inheritdoc}
*/
public function deleteStoreCookie(\Magento\Store\Api\Data\StoreInterface $store)
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'deleteStoreCookie');
if (!$pluginInfo) {
return parent::deleteStoreCookie($store);
} else {
return $this->___callPlugins('deleteStoreCookie', func_get_args(), $pluginInfo);
}
}
}