Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Manage.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
20  protected $_customerSession;
21 
26  public function __construct(
27  \Magento\Framework\App\Action\Context $context,
28  \Magento\Customer\Model\Session $customerSession
29  ) {
30  parent::__construct($context);
31  $this->_customerSession = $customerSession;
32  }
33 
41  {
42  if (!$this->_customerSession->authenticate()) {
43  $this->_actionFlag->set('', 'no-dispatch', true);
44  }
45  return parent::dispatch($request);
46  }
47 }
dispatch(RequestInterface $request)
Definition: Manage.php:40
__construct(\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession)
Definition: Manage.php:26