Skip to content

Commit a06f78f

Browse files
committed
Updated to work with Slim 2.X
1 parent ec1e6a4 commit a06f78f

File tree

4 files changed

+47
-7
lines changed

4 files changed

+47
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require": {
3-
"slim/slim": "1.6.*"
3+
"slim/slim": "2.*"
44
}
55
}

composer.lock

Lines changed: 43 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
require 'vendor/autoload.php';
33

4-
$app = new Slim();
4+
$app = new \Slim\Slim();
55

6-
$app->add(new Slim_Middleware_SessionCookie(array('secret' => 'myappsecret')));
6+
$app->add(new \Slim\Middleware\SessionCookie(array('secret' => 'myappsecret')));
77

88
$authenticate = function ($app) {
99
return function () use ($app) {

readme.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In response to http://help.slimframework.com/discussions/questions/341-loginlogo
1010

1111
Launch browser to http://127.0.0.1
1212

13-
This application uses [route middleware](http://www.slimframework.com/documentation/stable#routing-middleware) for authentication and a [slim.before.dispatch hook](http://www.slimframework.com/documentation/stable#hooks-default) to set a `$user` variable for all views if in fact the user is logged in.
13+
This application uses [route middleware](http://docs.slimframework.com/pages/routing-middleware/) for authentication and a [slim.before.dispatch hook](http://docs.slimframework.com/pages/hooks-overview/) to set a `$user` variable for all views if in fact the user is logged in.
1414

1515
## Public pages
1616

0 commit comments

Comments
 (0)