Commit 780d7514 authored by Julien Minet's avatar Julien Minet
Browse files

fix deprecations: use security.token_storage instead of security.context

parent 1d10d89a
Pipeline #46815 failed with stages
in 1 minute and 18 seconds
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment