Skip to content

Commit 32b5964

Browse files
committed
register session events in base provider.
1 parent 2cde09f commit 32b5964

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

app/routes.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,4 @@
1515
$app->get('/', function() use ($app)
1616
{
1717
return 'Hello World!';
18-
});
19-
20-
/*
21-
|--------------------------------------------------------------------------
22-
| Application Events
23-
|--------------------------------------------------------------------------
24-
|
25-
| These events run before and after requests to your application and
26-
| are very useful for pre and post processing. By default they're
27-
| responsible for starting and finishing the session handling.
28-
|
29-
*/
30-
31-
$app->before(function($request) use ($app)
32-
{
33-
$app['session']->start($request);
34-
});
35-
36-
37-
$app->after(function($request, $response) use ($app)
38-
{
39-
$app['session']->finish($response, $app['cookie']);
4018
});

0 commit comments

Comments
 (0)