Skip to content

Commit f10d1e6

Browse files
authored
Fix typo getItendedSessionKey (#42)
getItendedSessionKey => getIntendedSessionKey
1 parent 90a6495 commit f10d1e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

classes/UserRedirector.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class UserRedirector extends Redirector
1616
*/
1717
public function guest($path, $status = 302, $headers = [], $secure = null)
1818
{
19-
$this->session->put($this->getItendedSessionKey(), $this->generator->full());
19+
$this->session->put($this->getIntendedSessionKey(), $this->generator->full());
2020

2121
return $this->to($path, $status, $headers, $secure);
2222
}
@@ -32,7 +32,7 @@ public function guest($path, $status = 302, $headers = [], $secure = null)
3232
*/
3333
public function intended($default = '/', $status = 302, $headers = [], $secure = null)
3434
{
35-
$path = $this->session->pull($this->getItendedSessionKey(), $default);
35+
$path = $this->session->pull($this->getIntendedSessionKey(), $default);
3636

3737
return $this->to($path, $status, $headers, $secure);
3838
}
@@ -45,15 +45,15 @@ public function intended($default = '/', $status = 302, $headers = [], $secure =
4545
*/
4646
public function setIntendedUrl($url)
4747
{
48-
$this->session->put($this->getItendedSessionKey(), $url);
48+
$this->session->put($this->getIntendedSessionKey(), $url);
4949
}
5050

5151
/**
5252
* Get the session key for the intended redirect
5353
*
5454
* @return string
5555
*/
56-
protected function getItendedSessionKey()
56+
protected function getIntendedSessionKey()
5757
{
5858
return App::runningInBackend() ? 'url.intended' : 'url.frontend.intended';
5959
}

0 commit comments

Comments
 (0)