Add getAuthenticator usage

Replace $app['authentication']->getUser() by $app->getAuthenticatedUser()
replace twig app['authentication'].getUser() with corresponding method
This commit is contained in:
Benoît Burnichon
2015-06-30 19:51:02 +02:00
parent 3804eb5408
commit 4880f2bf5a
113 changed files with 437 additions and 428 deletions

View File

@@ -222,7 +222,7 @@ class DataboxesController extends Controller
$this->app['phraseanet.appbox']->get_connection()->beginTransaction();
$base = \databox::mount($this->app, $hostname, $port, $user, $password, $dbName);
$base->registerAdmin($this->app['authentication']->getUser());
$base->registerAdmin($this->app->getAuthenticatedUser());
$this->app['phraseanet.appbox']->get_connection()->commit();
return $this->app->redirectPath('admin_database', [