Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
Login Class Reference
Inheritance diagram for Login:
Action HttpPostActionInterface AbstractAction ActionInterface ActionInterface

Public Member Functions

 __construct (\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Framework\Json\Helper\Data $helper, AccountManagementInterface $customerAccountManagement, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, \Magento\Framework\Controller\Result\RawFactory $resultRawFactory, CookieManagerInterface $cookieManager=null, CookieMetadataFactory $cookieMetadataFactory=null)
 
 setAccountRedirect ($value)
 
 setScopeConfig ($value)
 
- Public Member Functions inherited from Action
 __construct (Context $context)
 
 dispatch (RequestInterface $request)
 
 getActionFlag ()
 
- Public Member Functions inherited from AbstractAction
 __construct (Context $context)
 
 dispatch (RequestInterface $request)
 
 getRequest ()
 
 getResponse ()
 
- Public Member Functions inherited from ActionInterface
 execute ()
 

Protected Member Functions

 getAccountRedirect ()
 
 getScopeConfig ()
 
- Protected Member Functions inherited from Action
 _forward ($action, $controller=null, $module=null, array $params=null)
 
 _redirect ($path, $arguments=[])
 

Protected Attributes

 $session
 
 $customerAccountManagement
 
 $helper
 
 $resultJsonFactory
 
 $resultRawFactory
 
 $accountRedirect
 
 $scopeConfig
 
- Protected Attributes inherited from Action
 $_objectManager
 
 $_sessionNamespace
 
 $_eventManager
 
 $_actionFlag
 
 $_redirect
 
 $_view
 
 $_url
 
 $messageManager
 
- Protected Attributes inherited from AbstractAction
 $_request
 
 $_response
 
 $resultRedirectFactory
 
 $resultFactory
 

Additional Inherited Members

- Data Fields inherited from ActionInterface
const FLAG_NO_DISPATCH = 'no-dispatch'
 
const FLAG_NO_POST_DISPATCH = 'no-postDispatch'
 
const FLAG_NO_DISPATCH_BLOCK_EVENT = 'no-beforeGenerateLayoutBlocksDispatch'
 
const PARAM_NAME_BASE64_URL = 'r64'
 
const PARAM_NAME_URL_ENCODED = 'uenc'
 

Detailed Description

Login controller

@method \Magento\Framework\App\RequestInterface getRequest() @method \Magento\Framework\App\Response\Http getResponse() @SuppressWarnings(PHPMD.CouplingBetweenObjects)

Definition at line 27 of file Login.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\App\Action\Context  $context,
\Magento\Customer\Model\Session  $customerSession,
\Magento\Framework\Json\Helper\Data  $helper,
AccountManagementInterface  $customerAccountManagement,
\Magento\Framework\Controller\Result\JsonFactory  $resultJsonFactory,
\Magento\Framework\Controller\Result\RawFactory  $resultRawFactory,
CookieManagerInterface  $cookieManager = null,
CookieMetadataFactory  $cookieMetadataFactory = null 
)

Initialize Login controller

Parameters
\Magento\Framework\App\Action\Context$context
\Magento\Customer\Model\Session$customerSession
\Magento\Framework\Json\Helper\Data$helper
AccountManagementInterface$customerAccountManagement
\Magento\Framework\Controller\Result\JsonFactory$resultJsonFactory
\Magento\Framework\Controller\Result\RawFactory$resultRawFactory
CookieManagerInterface$cookieManager
CookieMetadataFactory$cookieMetadataFactory

Definition at line 86 of file Login.php.

95  {
96  parent::__construct($context);
97  $this->customerSession = $customerSession;
98  $this->helper = $helper;
99  $this->customerAccountManagement = $customerAccountManagement;
100  $this->resultJsonFactory = $resultJsonFactory;
101  $this->resultRawFactory = $resultRawFactory;
102  $this->cookieManager = $cookieManager ?:
103  ObjectManager::getInstance()->get(CookieManagerInterface::class);
104  $this->cookieMetadataFactory = $cookieMetadataFactory ?:
105  ObjectManager::getInstance()->get(CookieMetadataFactory::class);
106  }

Member Function Documentation

◆ getAccountRedirect()

getAccountRedirect ( )
protected

Get account redirect. For release backward compatibility.

Deprecated:
100.0.10
Returns
AccountRedirect

Definition at line 115 of file Login.php.

116  {
117  if (!is_object($this->accountRedirect)) {
118  $this->accountRedirect = ObjectManager::getInstance()->get(AccountRedirect::class);
119  }
120  return $this->accountRedirect;
121  }

◆ getScopeConfig()

getScopeConfig ( )
protected
Deprecated:
100.0.10
Returns
ScopeConfigInterface

Definition at line 139 of file Login.php.

140  {
141  if (!is_object($this->scopeConfig)) {
142  $this->scopeConfig = ObjectManager::getInstance()->get(ScopeConfigInterface::class);
143  }
144  return $this->scopeConfig;
145  }

◆ setAccountRedirect()

setAccountRedirect (   $value)

Account redirect setter for unit tests.

Deprecated:
100.0.10
Parameters
AccountRedirect$value
Returns
void

Definition at line 130 of file Login.php.

131  {
132  $this->accountRedirect = $value;
133  }
$value
Definition: gender.phtml:16

◆ setScopeConfig()

setScopeConfig (   $value)
Deprecated:
100.0.10
Parameters
ScopeConfigInterface$value
Returns
void

Definition at line 152 of file Login.php.

153  {
154  $this->scopeConfig = $value;
155  }
$value
Definition: gender.phtml:16

Field Documentation

◆ $accountRedirect

$accountRedirect
protected

Definition at line 57 of file Login.php.

◆ $customerAccountManagement

$customerAccountManagement
protected

Definition at line 37 of file Login.php.

◆ $helper

Magento Framework Json Helper Data $helper
protected

Definition at line 42 of file Login.php.

◆ $resultJsonFactory

$resultJsonFactory
protected

Definition at line 47 of file Login.php.

◆ $resultRawFactory

$resultRawFactory
protected

Definition at line 52 of file Login.php.

◆ $scopeConfig

$scopeConfig
protected

Definition at line 62 of file Login.php.

◆ $session

$session
protected

Definition at line 32 of file Login.php.


The documentation for this class was generated from the following file: