Neuron-PHP

AuthenticationFilter extends Filter
in package

Authentication filter.

Ensures user is authenticated before accessing protected routes. Redirects to login page if not authenticated.

Table of Contents

Properties

$_authentication  : Authentication
$_loginUrl  : string
$_postFn  : Closure|null
$_preFn  : Closure|null
$_redirectParam  : string

Methods

__construct()  : mixed
post()  : mixed|null
pre()  : mixed|null
setLoginUrl()  : self
Set login URL
checkAuthentication()  : void
Check if user is authenticated

Properties

$_postFn

private Closure|null $_postFn

$_preFn

private Closure|null $_preFn

Methods

setLoginUrl()

Set login URL

public setLoginUrl(string $loginUrl) : self
Parameters
$loginUrl : string
Return values
self

        
On this page

Search results