use Chamilo\CoreBundle\Repository\IllustrationRepository;
use Chamilo\ThemeBundle\Model\UserInterface;
use Chamilo\UserBundle\Entity\User;
use Chamilo\UserBundle\Form\ProfileType;
use Chamilo\UserBundle\Repository\UserRepository;
use FOS\UserBundle\Model\UserManagerInterface;
@ -35,14 +35,12 @@ class AccountController extends BaseController
*
* @param string $username
*/
public function editAction(Request $request, UserManagerInterface $userManager, TranslatorInterface $translator)
public function editAction(Request $request, UserManagerInterface $userManager, TranslatorInterface $translator, IllustrationRepository $illustrationRepository)
{
$user = $this->getUser();
if (!is_object($user) || !$user instanceof UserInterface) {
throw $this->createAccessDeniedException(
'This user does not have access to this section'
);
throw $this->createAccessDeniedException('This user does not have access to this section');