Remove get_registry method

This commit is contained in:
Romain Neutron
2012-09-28 14:19:48 +02:00
parent 65589f3b21
commit 58af2b4c9c
52 changed files with 109 additions and 146 deletions

View File

@@ -249,7 +249,7 @@ class Session_Authentication_Native implements Session_Authentication_Interface
protected function check_and_revoke_badlogs($ip)
{
$conn = $this->app['phraseanet.appbox']->get_connection();
$registry = $this->app['phraseanet.appbox']->get_registry();
$registry = $this->app['phraseanet.registry'];
$sql = 'SELECT id FROM badlog
WHERE (login = :login OR ip = :ip) AND locked="1"';
@@ -285,7 +285,7 @@ class Session_Authentication_Native implements Session_Authentication_Interface
*/
protected function is_captcha_activated(registryInterface $registry)
{
$registry = $this->app['phraseanet.appbox']->get_registry();
$registry = $this->app['phraseanet.registry'];
return ($registry->get('GV_captchas')
&& trim($registry->get('GV_captcha_private_key')) !== ''

View File

@@ -156,7 +156,7 @@ class Session_Logger
WHERE site = :site AND sit_session = :ses_id';
$params = array(
':site' => $databox->get_registry()->get('GV_sit')
':site' => $app['phraseanet.registry']->get('GV_sit')
, ':ses_id' => $app['session']->get('phrasea_session_id')
);