Skip to content

Commit

Permalink
Update ReadMe.md
Browse files Browse the repository at this point in the history
  • Loading branch information
geggleto committed Nov 13, 2015
1 parent 500c9f7 commit c51226d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@ This middleware injects your middleware contents into the Request Object.
```php
$app->add(new Geggleto\SessionMiddleware('session_name'));
```

## Example
```php
//In your Session you have
[
'user' => 1
]

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

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

```

0 comments on commit c51226d

Please sign in to comment.