PHP Class Spatie\CookieConsent\CookieConsentMiddleware

Afficher le fichier Open project: spatie/laravel-cookie-consent

Protected Properties

Свойство Type Description
$app Illuminate\Contracts\Foundation\Application

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Foundation\Application $app )
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed

Méthodes protégées

Méthode Description
addCookieConsentScriptToResponse ( Illuminate\Http\Response $response )
containsBodyTag ( Illuminate\Http\Response $response ) : boolean
getLastClosingBodyTagPosition ( string $content = '' ) : integer | boolean

Method Details

__construct() public méthode

public __construct ( Illuminate\Contracts\Foundation\Application $app )
$app Illuminate\Contracts\Foundation\Application

addCookieConsentScriptToResponse() protected méthode

protected addCookieConsentScriptToResponse ( Illuminate\Http\Response $response )
$response Illuminate\Http\Response

containsBodyTag() protected méthode

protected containsBodyTag ( Illuminate\Http\Response $response ) : boolean
$response Illuminate\Http\Response
Résultat boolean

getLastClosingBodyTagPosition() protected méthode

protected getLastClosingBodyTagPosition ( string $content = '' ) : integer | boolean
$content string
Résultat integer | boolean

handle() public méthode

public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
Résultat mixed

Property Details

$app protected_oe property

protected Application,Illuminate\Contracts\Foundation $app
Résultat Illuminate\Contracts\Foundation\Application