From e1efbb310bbbdee0e0b646e730e215db845c4ed9 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 27 Aug 2013 14:28:23 +0200 Subject: [PATCH] Fixing getUser exception. --- src/ChamiloLMS/Controller/BaseController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ChamiloLMS/Controller/BaseController.php b/src/ChamiloLMS/Controller/BaseController.php index 26981cbb7a..b0daf67c70 100644 --- a/src/ChamiloLMS/Controller/BaseController.php +++ b/src/ChamiloLMS/Controller/BaseController.php @@ -130,11 +130,11 @@ abstract class BaseController extends FlintController */ public function getUser() { - if (!$this->has('security.context')) { + if (!$this->has('security')) { throw new \LogicException('The SecurityServiceProvider is not registered in your application.'); } - if (null === $token = $this->get('security.context')->getToken()) { + if (null === $token = $this->get('security')->getToken()) { return null; }