Commit 37952fb0 authored by Igor Wiedler's avatar Igor Wiedler

fix ControllerProvider example

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