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