43 lines
972 B
PHP
43 lines
972 B
PHP
<?php
|
|
|
|
namespace Stemcell\Customer\Block;
|
|
|
|
use Magento\Customer\ViewModel\CookieSettings;
|
|
use Magento\Customer\ViewModel\Customer\Auth;
|
|
use Magento\Customer\ViewModel\Customer\JsonSerializer;
|
|
|
|
class CustomerData extends \Magento\Customer\Block\CustomerData
|
|
{
|
|
public function __construct(
|
|
\Magento\Framework\View\Element\Template\Context $context,
|
|
private Auth $auth,
|
|
private JsonSerializer $jsonSerializer,
|
|
private CookieSettings $cookieSettings,
|
|
array $data = [],
|
|
array $expirableSectionNames = []
|
|
) {
|
|
parent::__construct($context, $data, $expirableSectionNames);
|
|
}
|
|
|
|
/**
|
|
* @return Auth
|
|
*/
|
|
public function getAuth()
|
|
{
|
|
return $this->auth;
|
|
}
|
|
|
|
/**
|
|
* @return JsonSerializer
|
|
*/
|
|
public function getJsonSerializer()
|
|
{
|
|
return $this->jsonSerializer;
|
|
}
|
|
|
|
public function getCookieSettings()
|
|
{
|
|
return $this->cookieSettings;
|
|
}
|
|
}
|