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

This commit is contained in:
nobohan 2018-04-09 12:11:27 +02:00
parent 1d10d89a9b
commit 780d751455

View File

@ -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);