From cfa04e322fca29ac613ec5e1027f18998aa38fcf Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Tue, 24 Jul 2012 13:15:50 +0200 Subject: [PATCH] Add binds --- lib/Alchemy/Phrasea/Application/Root.php | 2 +- lib/Alchemy/Phrasea/Controller/Root/Login.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Alchemy/Phrasea/Application/Root.php b/lib/Alchemy/Phrasea/Application/Root.php index d662082dc3..88a89b201f 100644 --- a/lib/Alchemy/Phrasea/Application/Root.php +++ b/lib/Alchemy/Phrasea/Application/Root.php @@ -53,7 +53,7 @@ return call_user_func(function() { } return new Response($buffer, 200, array('Content-Type' => 'text/plain')); - }); + })->bind('robots'); $app->mount('/feeds/', new RSSFeeds()); $app->mount('/account/', new Account()); diff --git a/lib/Alchemy/Phrasea/Controller/Root/Login.php b/lib/Alchemy/Phrasea/Controller/Root/Login.php index 80618a7b88..58193893fc 100644 --- a/lib/Alchemy/Phrasea/Controller/Root/Login.php +++ b/lib/Alchemy/Phrasea/Controller/Root/Login.php @@ -32,7 +32,8 @@ class Login implements ControllerProviderInterface $controllers->get('/', $this->call('login')) ->before(function() use ($app) { return $app['phraseanet.core']['Firewall']->requireNotAuthenticated($app); - }); + }) + ->bind('homepage'); /** * Logout