Commit 8150e2ca authored by Fabien Potencier's avatar Fabien Potencier

merged branch romainneutron/Documentation (PR #383)

Commits
-------

47769119 Update ControllerProvider example to use the controllers factory

Discussion
----------

Update ControllerProvider example to use the controllers factory
parents 3be840d4 47769119
......@@ -170,7 +170,8 @@ Here is an example of such a provider::
{
public function connect(Application $app)
{
$controllers = new ControllerCollection();
// creates a new controller based on the default route
$controllers = $app['controllers_factory'];
$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