Skip to content

Commit

Permalink
Fix package name
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Mar 17, 2013
1 parent a341eb6 commit aa886b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "c9s/Roller",
"name": "c9s/roller",
"homepage": "http://github.com/c9s/Roller",
"description": "High performance PHP router",
"require": {
Expand Down
7 changes: 3 additions & 4 deletions demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
Expand Down

0 comments on commit aa886b2

Please sign in to comment.