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


PHP Context::__construct方法代码示例

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


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

示例1: __construct

 public function __construct(CssRenderer $cssRenderer, ModelFactory $modelFactory, ParentFactory $parentFactory, ActiveRecordFactory $activeRecordFactory, HelperFactory $helperFactory, PageFactory $resultPageFactory, RawFactory $resultRawFactory, LayoutFactory $layoutFactory, \Magento\Framework\App\ResourceConnection $resourceConnection, \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, \Magento\Config\Model\Config $magentoConfig, $canUseBaseUrl = false)
 {
     $this->cssRenderer = $cssRenderer;
     $this->modelFactory = $modelFactory;
     $this->parentFactory = $parentFactory;
     $this->activeRecordFactory = $activeRecordFactory;
     $this->helperFactory = $helperFactory;
     $this->resultPageFactory = $resultPageFactory;
     $this->resultRawFactory = $resultRawFactory;
     $this->layoutFactory = $layoutFactory;
     $this->resourceConnection = $resourceConnection;
     $this->magentoConfig = $magentoConfig;
     parent::__construct($request, $response, $objectManager, $eventManager, $url, $redirect, $actionFlag, $view, $messageManager, $resultRedirectFactory, $resultFactory, $session, $authorization, $auth, $helper, $backendUrl, $formKeyValidator, $localeResolver, $canUseBaseUrl);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:14,代码来源:Context.php


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