Skip to content
Browse files

Fix package name

  • Loading branch information...
1 parent a341eb6 commit aa886b2bf6f179aa48586f1fdbbae5537e2bbd7b @c9s committed
Showing with 4 additions and 5 deletions.
  1. +1 −1 composer.json
  2. +3 −4 demo/index.php
View
2 composer.json
@@ -1,5 +1,5 @@
{
- "name": "c9s/Roller",
+ "name": "c9s/roller",
"homepage": "http://github.com/c9s/Roller",
"description": "High performance PHP router",
"require": {
View
7 demo/index.php
@@ -34,19 +34,18 @@ public function delete($resource,$id) {
public function find($resource) {
return range(1,10);
}
-
}
$router = new Roller\Router( null, array(
- // 'cache_id' => 'router_demo'
+ 'cache_id' => 'router_demo',
));
$restful = new Roller\Plugin\RESTful(array( 'prefix' => '/=' ));
$restful->setGenericHandler( 'MyGenericHandler' );
$router->addPlugin($restful);
-foreach( range(1,100) as $i )
- $router->add("/foo$i" , function() { return 'true'; });
+# foreach( range(1,100) as $i )
+# $router->add("/foo$i" , function() { return 'true'; });
$router->add('/',function() {
return 'Hello World, please request /=/test for RESTful resource handler demo.';

0 comments on commit aa886b2

Please sign in to comment.
Something went wrong with that request. Please try again.