示例#1
0
 /**
  * @param Context $context
  * @param Encoder $jsonEncoder
  * @param array $layoutProcessors
  * @param array $data
  */
 public function __construct(Context $context, Encoder $jsonEncoder, array $layoutProcessors = [], array $data = [])
 {
     parent::__construct($context, $data);
     $this->jsonEncoder = $jsonEncoder;
     $this->_isScopePrivate = true;
     $this->jsLayout = isset($data['jsLayout']) && is_array($data['jsLayout']) ? $data['jsLayout'] : [];
     $this->layoutProcessors = $layoutProcessors;
 }
示例#2
0
 /**
  * @param Template\Context $context
  * @param Cart $cartHelper
  * @param array $data
  * @codeCoverageIgnore
  */
 public function __construct(Template\Context $context, Cart $cartHelper, array $data = [])
 {
     $this->cartHelper = $cartHelper;
     parent::__construct($context, $data);
 }
示例#3
0
 /**
  * @param Template\Context $context
  * @param Data $wishlistHelper
  * @param array $data
  */
 public function __construct(Template\Context $context, Data $wishlistHelper, array $data = [])
 {
     $this->wishlistHelper = $wishlistHelper;
     parent::__construct($context, $data);
 }