more refactoring and dependency injection.

This commit is contained in:
Taylor Otwell
2011-09-06 22:04:52 -05:00
parent 0c2834fed1
commit 7eef380d8a
39 changed files with 560 additions and 501 deletions

View File

@@ -16,28 +16,28 @@ return array(
|
| Here is how to respond to a simple GET request to http://example.com/hello:
|
| 'GET /hello' => function()
| 'GET /hello' => function($laravel)
| {
| return 'Hello World!';
| }
|
| You can even respond to more than one URI:
|
| 'GET /hello, GET /world' => function()
| 'GET /hello, GET /world' => function($laravel)
| {
| return 'Hello World!';
| }
|
| It's easy to allow URI wildcards using the (:num) or (:any) place-holders:
|
| 'GET /hello/(:any)' => function($name)
| 'GET /hello/(:any)' => function($laravel, $name)
| {
| return "Welcome, $name.";
| }
|
*/
'GET /' => function()
'GET /' => function($laravel)
{
return View::make('home.index');
},