Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (RequestInterface $request, Session $customerSession, ScopeConfigInterface $scopeConfig, StoreManagerInterface $storeManager, UrlInterface $url, DecoderInterface $urlDecoder, CustomerUrl $customerUrl, ResultFactory $resultFactory, HostChecker $hostChecker=null) | |
setCookieManager ($value) | |
getRedirectCookie () | |
setRedirectCookie ($route) | |
clearRedirectCookie () | |
Data Fields | |
const | LOGIN_REDIRECT_URL = 'login_redirect' |
Protected Member Functions | |
updateLastCustomerId () | |
prepareRedirectUrl () | |
processLoggedCustomer () | |
getCookieManager () | |
Protected Attributes | |
$request | |
$scopeConfig | |
$storeManager | |
$urlDecoder | |
$customerUrl | |
$url | |
$resultFactory | |
$cookieManager | |
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 26 of file Redirect.php.
__construct | ( | RequestInterface | $request, |
Session | $customerSession, | ||
ScopeConfigInterface | $scopeConfig, | ||
StoreManagerInterface | $storeManager, | ||
UrlInterface | $url, | ||
DecoderInterface | $urlDecoder, | ||
CustomerUrl | $customerUrl, | ||
ResultFactory | $resultFactory, | ||
HostChecker | $hostChecker = null |
||
) |
RequestInterface | $request | |
Session | $customerSession | |
ScopeConfigInterface | $scopeConfig | |
StoreManagerInterface | $storeManager | |
UrlInterface | $url | |
DecoderInterface | $urlDecoder | |
CustomerUrl | $customerUrl | |
ResultFactory | $resultFactory | |
HostChecker | null | $hostChecker |
Definition at line 93 of file Redirect.php.
clearRedirectCookie | ( | ) |
Clear cookie with requested route
Definition at line 290 of file Redirect.php.
|
protected |
Get Cookie manager. For release backward compatibility.
Definition at line 244 of file Redirect.php.
getRedirectCookie | ( | ) |
Get redirect route from cookie for case of successful login/registration
Definition at line 269 of file Redirect.php.
|
protected |
Prepare redirect URL
Definition at line 161 of file Redirect.php.
|
protected |
Prepare redirect URL for logged in customer
Redirect customer to the last page visited after logging in.
Definition at line 201 of file Redirect.php.
setCookieManager | ( | $value | ) |
Set cookie manager. For unit tests.
object | $value |
Definition at line 259 of file Redirect.php.
setRedirectCookie | ( | $route | ) |
Save redirect route to cookie for case of successful login/registration
string | $route |
Definition at line 280 of file Redirect.php.
|
protected |
|
protected |
Definition at line 70 of file Redirect.php.
|
protected |
Definition at line 54 of file Redirect.php.
|
protected |
Definition at line 34 of file Redirect.php.
|
protected |
Definition at line 65 of file Redirect.php.
|
protected |
Definition at line 39 of file Redirect.php.
|
protected |
Definition at line 44 of file Redirect.php.
|
protected |
Definition at line 60 of file Redirect.php.
|
protected |
Definition at line 49 of file Redirect.php.
const LOGIN_REDIRECT_URL = 'login_redirect' |
URL to redirect user on successful login or registration
Definition at line 29 of file Redirect.php.