mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add getAuthenticator usage
Replace $app['authentication']->getUser() by $app->getAuthenticatedUser() replace twig app['authentication'].getUser() with corresponding method
This commit is contained in:
@@ -49,7 +49,7 @@ class eventsmanager_notify_validationdone extends eventsmanager_notifyAbstract
|
||||
try {
|
||||
$repository = $this->app['repo.baskets'];
|
||||
|
||||
$basket = $repository->findUserBasket($ssel_id, $this->app['authentication']->getUser(), false);
|
||||
$basket = $repository->findUserBasket($ssel_id, $this->app->getAuthenticatedUser(), false);
|
||||
} catch (\Exception $e) {
|
||||
return [];
|
||||
}
|
||||
|
Reference in New Issue
Block a user