当前位置: 首页>>代码示例>>PHP>>正文


PHP Context::__construct方法代码示例

本文整理汇总了PHP中Magento\Framework\App\Action\Context::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::__construct方法的具体用法?PHP Context::__construct怎么用?PHP Context::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Magento\Framework\App\Action\Context的用法示例。


在下文中一共展示了Context::__construct方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * @param \Magento\Framework\App\RequestInterface $request
  * @param \Magento\Framework\App\ResponseInterface $response
  * @param \Magento\Framework\ObjectManagerInterface $objectManager
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Framework\UrlInterface $url
  * @param \Magento\Framework\App\Response\RedirectInterface $redirect
  * @param \Magento\Framework\App\ActionFlag $actionFlag
  * @param \Magento\Framework\App\ViewInterface $view
  * @param \Magento\Framework\Message\ManagerInterface $messageManager
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param \Magento\Framework\Controller\ResultFactory $resultFactory
  * @param \Magento\Backend\Model\Session $session
  * @param \Magento\Framework\AuthorizationInterface $authorization
  * @param \Magento\Backend\Model\Auth $auth
  * @param \Magento\Backend\Helper\Data $helper
  * @param \Magento\Backend\Model\UrlInterface $backendUrl
  * @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
  * @param \Magento\Framework\Locale\ResolverInterface $localeResolver
  * @param bool $canUseBaseUrl
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\App\RequestInterface $request, \Magento\Framework\App\ResponseInterface $response, \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\UrlInterface $url, \Magento\Framework\App\Response\RedirectInterface $redirect, \Magento\Framework\App\ActionFlag $actionFlag, \Magento\Framework\App\ViewInterface $view, \Magento\Framework\Message\ManagerInterface $messageManager, \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory, ResultFactory $resultFactory, \Magento\Backend\Model\Session $session, \Magento\Framework\AuthorizationInterface $authorization, \Magento\Backend\Model\Auth $auth, \Magento\Backend\Helper\Data $helper, \Magento\Backend\Model\UrlInterface $backendUrl, \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator, \Magento\Framework\Locale\ResolverInterface $localeResolver, $canUseBaseUrl = false)
 {
     parent::__construct($request, $response, $objectManager, $eventManager, $url, $redirect, $actionFlag, $view, $messageManager, $resultRedirectFactory, $resultFactory);
     $this->_session = $session;
     $this->_authorization = $authorization;
     $this->_auth = $auth;
     $this->_helper = $helper;
     $this->_backendUrl = $backendUrl;
     $this->_formKeyValidator = $formKeyValidator;
     $this->_localeResolver = $localeResolver;
     $this->_canUseBaseUrl = $canUseBaseUrl;
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:34,代码来源:Context.php


注:本文中的Magento\Framework\App\Action\Context::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。