Add bound names to routes

This commit is contained in:
Romain Neutron
2013-01-28 11:49:26 +01:00
parent 3bbdc58f46
commit e491f8d771
3 changed files with 5 additions and 3 deletions

View File

@@ -276,7 +276,9 @@ class Lightbox implements ControllerProviderInterface
$response->setCharset('UTF-8');
return $response;
})->assert('ssel_id', '\d+');
})
->assert('ssel_id', '\d+')
->bind('lightbox_compare') ;
$controllers->get('/feeds/entry/{entry_id}/', function (SilexApplication $app, $entry_id) {

View File

@@ -97,7 +97,7 @@ return call_user_func(function($environment = null) {
} else {
return $app->redirect("/login/?redirect=client");
}
});
})->bind('root');
$app->get('/robots.txt', function(PhraseaApplication $app) {

View File

@@ -125,7 +125,7 @@ class Root implements ControllerProviderInterface
'thesau_json_bas2sbas' => json_encode($bas2sbas),
'thesau_languages' => $app->getAvailableLanguages(),
));
});
})->bind('prod');
return $controllers;
}