Permalink
Browse files

Updated to work with Slim 2.X

  • Loading branch information...
1 parent ec1e6a4 commit a06f78fffaecf57c39a6e249ac48651dce170643 @briannesbitt committed Dec 5, 2012
Showing with 47 additions and 7 deletions.
  1. +1 −1 composer.json
  2. +43 −3 composer.lock
  3. +2 −2 index.php
  4. +1 −1 readme.markdown
View
@@ -1,5 +1,5 @@
{
"require": {
- "slim/slim": "1.6.*"
+ "slim/slim": "2.*"
}
}
View
@@ -1,9 +1,49 @@
{
- "hash": "8c737f891462501efb98eb2da73f0343",
+ "hash": "5fce2cdfc7f7494f3434012e95bf8eee",
"packages": [
{
- "package": "slim/slim",
- "version": "1.6.5"
+ "name": "slim/slim",
+ "version": "2.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/codeguy/Slim",
+ "reference": "2.1.0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/codeguy/Slim/zipball/2.1.0",
+ "reference": "2.1.0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "time": "2012-09-12 09:07:46",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "psr-0": {
+ "Slim": "."
+ }
+ },
+ "notification-url": "http://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Josh Lockhart",
+ "email": "info@joshlockhart.com",
+ "homepage": "http://www.joshlockhart.com/"
+ }
+ ],
+ "description": "Slim Framework, a PHP micro framework",
+ "homepage": "http://github.com/codeguy/Slim",
+ "keywords": [
+ "microframework",
+ "rest",
+ "router"
+ ]
}
],
"packages-dev": null,
View
@@ -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) {
View
@@ -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

0 comments on commit a06f78f

Please sign in to comment.