Skip to content

Commit

Permalink
Updated to work with Slim 2.X
Browse files Browse the repository at this point in the history
  • Loading branch information
briannesbitt committed Dec 5, 2012
1 parent ec1e6a4 commit a06f78f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"slim/slim": "1.6.*"
"slim/slim": "2.*"
}
}
46 changes: 43 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
require 'vendor/autoload.php';

$app = new Slim();
$app = new \Slim\Slim();

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

$authenticate = function ($app) {
return function () use ($app) {
Expand Down
2 changes: 1 addition & 1 deletion readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ In response to http://help.slimframework.com/discussions/questions/341-loginlogo

Launch browser to http://127.0.0.1

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.
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.

## Public pages

Expand Down

0 comments on commit a06f78f

Please sign in to comment.