124 lines
3 KiB
YAML
124 lines
3 KiB
YAML
name: AuthenticateSession
|
|
class_comment: null
|
|
dependencies:
|
|
- name: Closure
|
|
type: class
|
|
source: Closure
|
|
- name: AuthenticationException
|
|
type: class
|
|
source: Illuminate\Auth\AuthenticationException
|
|
- name: AuthFactory
|
|
type: class
|
|
source: Illuminate\Contracts\Auth\Factory
|
|
- name: AuthenticatesSessions
|
|
type: class
|
|
source: Illuminate\Contracts\Session\Middleware\AuthenticatesSessions
|
|
- name: Request
|
|
type: class
|
|
source: Illuminate\Http\Request
|
|
properties:
|
|
- name: auth
|
|
visibility: protected
|
|
comment: '# * The authentication factory implementation.
|
|
|
|
# *
|
|
|
|
# * @var \Illuminate\Contracts\Auth\Factory'
|
|
- name: redirectToCallback
|
|
visibility: protected
|
|
comment: '# * The callback that should be used to generate the authentication redirect
|
|
path.
|
|
|
|
# *
|
|
|
|
# * @var callable'
|
|
methods:
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: auth
|
|
comment: "# * The authentication factory implementation.\n# *\n# * @var \\Illuminate\\\
|
|
Contracts\\Auth\\Factory\n# */\n# protected $auth;\n# \n# /**\n# * The callback\
|
|
\ that should be used to generate the authentication redirect path.\n# *\n# *\
|
|
\ @var callable\n# */\n# protected static $redirectToCallback;\n# \n# /**\n# *\
|
|
\ Create a new middleware instance.\n# *\n# * @param \\Illuminate\\Contracts\\\
|
|
Auth\\Factory $auth\n# * @return void"
|
|
- name: handle
|
|
visibility: public
|
|
parameters:
|
|
- name: request
|
|
- name: next
|
|
comment: '# * Handle an incoming request.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Http\Request $request
|
|
|
|
# * @param \Closure $next
|
|
|
|
# * @return mixed'
|
|
- name: storePasswordHashInSession
|
|
visibility: protected
|
|
parameters:
|
|
- name: request
|
|
comment: '# * Store the user''s current password hash in the session.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Http\Request $request
|
|
|
|
# * @return void'
|
|
- name: logout
|
|
visibility: protected
|
|
parameters:
|
|
- name: request
|
|
comment: '# * Log the user out of the application.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Http\Request $request
|
|
|
|
# * @return void
|
|
|
|
# *
|
|
|
|
# * @throws \Illuminate\Auth\AuthenticationException'
|
|
- name: guard
|
|
visibility: protected
|
|
parameters: []
|
|
comment: '# * Get the guard instance that should be used by the middleware.
|
|
|
|
# *
|
|
|
|
# * @return \Illuminate\Contracts\Auth\Factory|\Illuminate\Contracts\Auth\Guard'
|
|
- name: redirectTo
|
|
visibility: protected
|
|
parameters:
|
|
- name: request
|
|
comment: '# * Get the path the user should be redirected to when their session is
|
|
not authenticated.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Http\Request $request
|
|
|
|
# * @return string|null'
|
|
- 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\Auth\AuthenticationException
|
|
- Illuminate\Contracts\Session\Middleware\AuthenticatesSessions
|
|
- Illuminate\Http\Request
|
|
interfaces:
|
|
- AuthenticatesSessions
|