本文整理汇总了PHP中Magento\Framework\App\Response\Http::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Http::__construct方法的具体用法?PHP Http::__construct怎么用?PHP Http::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Framework\App\Response\Http
的用法示例。
在下文中一共展示了Http::__construct方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(\Magento\Framework\App\Request\Http $request, \Magento\Framework\Stdlib\CookieManagerInterface $cookieManager, \Magento\Framework\Stdlib\Cookie\CookieMetadataFactory $cookieMetadataFactory, \Magento\Framework\App\Http\Context $context, \Magento\Framework\Stdlib\DateTime $dateTime)
{
$this->___init();
parent::__construct($request, $cookieManager, $cookieMetadataFactory, $context, $dateTime);
}
示例2: __construct
/**
* Constructor
*
* @param HttpRequest $request
* @param CookieManagerInterface $cookieManager
* @param CookieMetadataFactory $cookieMetadataFactory
* @param \Magento\Framework\App\Http\Context $context
* @param \Magento\Framework\Stdlib\DateTime $dateTime
* @param \Magento\Framework\File\Transfer\Adapter\Http $transferAdapter
*/
public function __construct(HttpRequest $request, CookieManagerInterface $cookieManager, CookieMetadataFactory $cookieMetadataFactory, \Magento\Framework\App\Http\Context $context, \Magento\Framework\Stdlib\DateTime $dateTime, \Magento\Framework\File\Transfer\Adapter\Http $transferAdapter)
{
parent::__construct($request, $cookieManager, $cookieMetadataFactory, $context, $dateTime);
$this->_transferAdapter = $transferAdapter;
}
示例3: __construct
/**
* Constructor
*
* @param \Magento\Framework\Stdlib\Cookie $cookie
* @param \Magento\Framework\App\Http\Context $context
* @param \Magento\Framework\File\Transfer\Adapter\Http $transferAdapter
*/
public function __construct(\Magento\Framework\Stdlib\Cookie $cookie, \Magento\Framework\App\Http\Context $context, \Magento\Framework\File\Transfer\Adapter\Http $transferAdapter)
{
parent::__construct($cookie, $context);
$this->_transferAdapter = $transferAdapter;
}