Commit 9b74b3ed authored by Fabien Potencier's avatar Fabien Potencier

merged branch igorw/providers-docs (PR #181)

Commits
-------

37952fb0 fix ControllerProvider example

Discussion
----------

fix ControllerProvider example
parents 2e8238a5 37952fb0
......@@ -206,6 +206,7 @@ Here is an example of such a provider::
use Silex\Application;
use Silex\ControllerProviderInterface;
use Silex\ControllerCollection;
class HelloControllerProvider implements ControllerProviderInterface
{
......@@ -213,7 +214,7 @@ Here is an example of such a provider::
{
$controllers = new ControllerCollection();
$controllers->get('/', function (Silex\Application $app) {
$controllers->get('/', function (Application $app) {
return $app->redirect('/hello');
});
......
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