PHP Class Sulu\Bundle\SecurityBundle\Twig\UserTwigExtension

Inheritance: extends Twig_Extension
Mostrar archivo Open project: sulu/sulu

Public Methods

Method Description
__construct ( Doctrine\Common\Cache\Cache $cache, UserRepository $userRepository )
getFunctions ( ) : array
getName ( )
resolveUserFunction ( integer $id ) : User resolves user id to user data.

Method Details

__construct() public method

public __construct ( Doctrine\Common\Cache\Cache $cache, UserRepository $userRepository )
$cache Doctrine\Common\Cache\Cache
$userRepository Sulu\Bundle\SecurityBundle\Entity\UserRepository

getFunctions() public method

public getFunctions ( ) : array
return array

getName() public method

public getName ( )

resolveUserFunction() public method

resolves user id to user data.
public resolveUserFunction ( integer $id ) : User
$id integer id to resolve
return Sulu\Bundle\SecurityBundle\Entity\User