Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CardsManagement.php
Go to the documentation of this file.
1 <?php
7 
13 
15 {
19  protected $customerSession;
20 
25  public function __construct(
26  Context $context,
28  ) {
29  parent::__construct($context);
30  $this->customerSession = $customerSession;
31  }
32 
41  {
42  if (!$this->customerSession->authenticate()) {
43  $this->_actionFlag->set('', 'no-dispatch', true);
44  }
45  return parent::dispatch($request);
46  }
47 }
__construct(Context $context, Session $customerSession)