mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add bound names to routes
This commit is contained in:
@@ -276,7 +276,9 @@ class Lightbox implements ControllerProviderInterface
|
|||||||
$response->setCharset('UTF-8');
|
$response->setCharset('UTF-8');
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
})->assert('ssel_id', '\d+');
|
})
|
||||||
|
->assert('ssel_id', '\d+')
|
||||||
|
->bind('lightbox_compare') ;
|
||||||
|
|
||||||
$controllers->get('/feeds/entry/{entry_id}/', function (SilexApplication $app, $entry_id) {
|
$controllers->get('/feeds/entry/{entry_id}/', function (SilexApplication $app, $entry_id) {
|
||||||
|
|
||||||
|
@@ -97,7 +97,7 @@ return call_user_func(function($environment = null) {
|
|||||||
} else {
|
} else {
|
||||||
return $app->redirect("/login/?redirect=client");
|
return $app->redirect("/login/?redirect=client");
|
||||||
}
|
}
|
||||||
});
|
})->bind('root');
|
||||||
|
|
||||||
$app->get('/robots.txt', function(PhraseaApplication $app) {
|
$app->get('/robots.txt', function(PhraseaApplication $app) {
|
||||||
|
|
||||||
|
@@ -125,7 +125,7 @@ class Root implements ControllerProviderInterface
|
|||||||
'thesau_json_bas2sbas' => json_encode($bas2sbas),
|
'thesau_json_bas2sbas' => json_encode($bas2sbas),
|
||||||
'thesau_languages' => $app->getAvailableLanguages(),
|
'thesau_languages' => $app->getAvailableLanguages(),
|
||||||
));
|
));
|
||||||
});
|
})->bind('prod');
|
||||||
|
|
||||||
return $controllers;
|
return $controllers;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user