Skip to content

geggleto/psr7-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Session Middleware

This middleware injects your middleware contents into the Request Object.

Usage

$app->add(new \Geggleto\Middleware\Session('session_name'));

Example

//In your Session you have
[
    'user' => 1
]

//Then in your Request Object, if you want your User ID...

$request->getAttribute('user') === 1

About

Middleware to expose your SESSION stuff to Requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages