mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
fix deprecations: use security.token_storage instead of security.context
This commit is contained in:
@@ -258,7 +258,7 @@ class ReportController extends Controller
|
||||
}
|
||||
|
||||
$entity = new Report();
|
||||
$entity->setUser($this->get('security.context')->getToken()->getUser());
|
||||
$entity->setUser($this->get('security.token_storage')->getToken()->getUser());
|
||||
$entity->setDate(new \DateTime('now'));
|
||||
|
||||
$entity->setCFGroup($cFGroup);
|
||||
|
Reference in New Issue
Block a user