Commit 41639536 authored by Fabien Potencier's avatar Fabien Potencier

fixed rst markup

parent 2c7af8e6
...@@ -3,35 +3,35 @@ Changelog ...@@ -3,35 +3,35 @@ Changelog
This changelog references all backward incompatibilities as we introduce them: This changelog references all backward incompatibilities as we introduce them:
* 2011-09-22: `ExtensionInterface` has been renamed to * **2011-09-22**: `ExtensionInterface` has been renamed to
`ServiceProviderInterface`. All built-in extensions have been renamed `ServiceProviderInterface`. All built-in extensions have been renamed
accordingly (for instance, `Silex\Extension\TwigExtension` has been renamed accordingly (for instance, `Silex\Extension\TwigExtension` has been renamed
to `Silex\Provider\TwigServiceProvider`) to `Silex\Provider\TwigServiceProvider`)
* 2011-09-22: The way reusable applications work has changed. The `mount()` * **2011-09-22**: The way reusable applications work has changed. The `mount()`
method now takes an instance of `ControllerCollection` instead of an method now takes an instance of `ControllerCollection` instead of an
`Application` one. `Application` one.
Before: Before::
$app = new Application(); $app = new Application();
$app->get('/bar', function() { return 'foo'; }); $app->get('/bar', function() { return 'foo'; });
return $app; return $app;
After: After::
$app = new ControllerCollection(); $app = new ControllerCollection();
$app->get('/bar', function() { return 'foo'; }); $app->get('/bar', function() { return 'foo'; });
return $app; return $app;
* 2011-08-08: The controller method configuration is now done on the Controller itself * **2011-08-08**: The controller method configuration is now done on the Controller itself
Before: Before::
$app->match('/', function () { echo 'foo'; }, 'GET|POST'); $app->match('/', function () { echo 'foo'; }, 'GET|POST');
After: After::
$app->match('/', function () { echo 'foo'; })->method('GET|POST'); $app->match('/', function () { echo 'foo'; })->method('GET|POST');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment