Add binds

This commit is contained in:
Romain Neutron
2012-07-24 13:15:50 +02:00
parent 4b4417ed01
commit cfa04e322f
2 changed files with 3 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ return call_user_func(function() {
} }
return new Response($buffer, 200, array('Content-Type' => 'text/plain')); return new Response($buffer, 200, array('Content-Type' => 'text/plain'));
}); })->bind('robots');
$app->mount('/feeds/', new RSSFeeds()); $app->mount('/feeds/', new RSSFeeds());
$app->mount('/account/', new Account()); $app->mount('/account/', new Account());

View File

@@ -32,7 +32,8 @@ class Login implements ControllerProviderInterface
$controllers->get('/', $this->call('login')) $controllers->get('/', $this->call('login'))
->before(function() use ($app) { ->before(function() use ($app) {
return $app['phraseanet.core']['Firewall']->requireNotAuthenticated($app); return $app['phraseanet.core']['Firewall']->requireNotAuthenticated($app);
}); })
->bind('homepage');
/** /**
* Logout * Logout