Commit 47769119 authored by Romain Neutron's avatar Romain Neutron

Update ControllerProvider example to use the controllers factory

parent 3be840d4
......@@ -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