mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-03 15:36:14 +00:00
fix deprecations: use security.token_storage instead of security.context
This commit is contained in:
parent
1d10d89a9b
commit
780d751455
@ -258,7 +258,7 @@ class ReportController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$entity = new Report();
|
$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->setDate(new \DateTime('now'));
|
||||||
|
|
||||||
$entity->setCFGroup($cFGroup);
|
$entity->setCFGroup($cFGroup);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user