本文整理汇总了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);
}