diff --git a/src/KekRozsak/SecurityBundle/Resources/config/services.xml b/src/KekRozsak/SecurityBundle/Resources/config/services.xml
index 0501c88..9b64013 100644
--- a/src/KekRozsak/SecurityBundle/Resources/config/services.xml
+++ b/src/KekRozsak/SecurityBundle/Resources/config/services.xml
@@ -9,7 +9,7 @@
-
+
diff --git a/src/KekRozsak/SecurityBundle/Twig/UserDataSpanExtension.php b/src/KekRozsak/SecurityBundle/Twig/UserDataSpanExtension.php
index 632912f..2d1998c 100644
--- a/src/KekRozsak/SecurityBundle/Twig/UserDataSpanExtension.php
+++ b/src/KekRozsak/SecurityBundle/Twig/UserDataSpanExtension.php
@@ -3,18 +3,18 @@
namespace KekRozsak\SecurityBundle\Twig;
use Symfony\Component\Security\Core\SecurityContextInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
+use Symfony\Bundle\FrameworkBundle\Routing\Router;
use KekRozsak\SecurityBundle\Entity\User;
class UserDataSpanExtension extends \Twig_Extension
{
protected $_securityContext;
- protected $_serviceContainer;
+ protected $_router;
- public function __construct(ContainerInterface $container, SecurityContextInterface $security)
+ public function __construct(Router $router, SecurityContextInterface $security)
{
- $this->_serviceContainer = $container;
+ $this->_router = $router;
$this->_securityContext = $security;
}
@@ -30,7 +30,7 @@ class UserDataSpanExtension extends \Twig_Extension
if (!is_object($this->_securityContext->getToken()) || !is_object($this->_securityContext->getToken()->getUser()))
return '[nem jelenhet meg]';
- return '' . $user->getDisplayName() . '';
+ return '' . $user->getDisplayName() . '';
}
public function getName()