25 \
Magento\Customer\Model\Session $customerSession
27 $this->_customerSession = $customerSession;
28 parent::__construct($context);
39 $loginUrl = $this->_objectManager->get(\
Magento\Customer\Model\Url::class)->getLoginUrl();
41 if (!$this->_customerSession->authenticate($loginUrl)) {
42 $this->_actionFlag->set(
'', self::FLAG_NO_DISPATCH,
true);
54 $this->_view->loadLayout();
55 if (
$block = $this->_view->getLayout()->getBlock(
'downloadable_customer_products_list')) {
58 $this->_view->getPage()->getConfig()->getTitle()->set(
__(
'My Downloadable Products'));
59 $this->_view->renderLayout();
_redirect($path, $arguments=[])
dispatch(RequestInterface $request)
__construct(\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession)