68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
|
name: RedirectIfAuthenticated
|
||
|
class_comment: null
|
||
|
dependencies:
|
||
|
- name: Closure
|
||
|
type: class
|
||
|
source: Closure
|
||
|
- name: Request
|
||
|
type: class
|
||
|
source: Illuminate\Http\Request
|
||
|
- name: Auth
|
||
|
type: class
|
||
|
source: Illuminate\Support\Facades\Auth
|
||
|
- name: Route
|
||
|
type: class
|
||
|
source: Illuminate\Support\Facades\Route
|
||
|
- name: Response
|
||
|
type: class
|
||
|
source: Symfony\Component\HttpFoundation\Response
|
||
|
properties:
|
||
|
- name: redirectToCallback
|
||
|
visibility: protected
|
||
|
comment: '# * The callback that should be used to generate the authentication redirect
|
||
|
path.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @var callable|null'
|
||
|
methods:
|
||
|
- name: handle
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: request
|
||
|
- name: next
|
||
|
- name: '...$guards'
|
||
|
comment: "# * The callback that should be used to generate the authentication redirect\
|
||
|
\ path.\n# *\n# * @var callable|null\n# */\n# protected static $redirectToCallback;\n\
|
||
|
# \n# /**\n# * Handle an incoming request.\n# *\n# * @param \\Closure(\\Illuminate\\\
|
||
|
Http\\Request): (\\Symfony\\Component\\HttpFoundation\\Response) $next"
|
||
|
- name: redirectTo
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: request
|
||
|
comment: '# * Get the path the user should be redirected to when they are authenticated.'
|
||
|
- name: defaultRedirectUri
|
||
|
visibility: protected
|
||
|
parameters: []
|
||
|
comment: '# * Get the default URI the user should be redirected to when they are
|
||
|
authenticated.'
|
||
|
- name: redirectUsing
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: redirectToCallback
|
||
|
comment: '# * Specify the callback that should be used to generate the redirect
|
||
|
path.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param callable $redirectToCallback
|
||
|
|
||
|
# * @return void'
|
||
|
traits:
|
||
|
- Closure
|
||
|
- Illuminate\Http\Request
|
||
|
- Illuminate\Support\Facades\Auth
|
||
|
- Illuminate\Support\Facades\Route
|
||
|
- Symfony\Component\HttpFoundation\Response
|
||
|
interfaces: []
|