Can you suggest me a solution, how to get access to Doctrine from a Service in Symfony 3? I send an object of Doctrine from Controller to created Service object in a constructor but I not sure if it is the best option.
Could you recommend me a better solution?
public function editGroupAction($groupId) {
$doctrine = $this->getDoctrine();
$roleHelper = new RoleHelper($doctrine);
}