PHP Класс FOS\UserBundle\Twig\UserExtension

Наследование: extends Twig_Extensio\Twig_Extension
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$securityContext

Открытые методы

Метод Описание
__construct ( SecurityContext $securityContext )
getFunctions ( ) : array Returns a list of global functions to add to the existing list.
getName ( ) : string Returns the name of the extension.
getUser ( ) : FOS\UserBundle\Model\User Returns the authenticated user, if any
isAnonymous ( ) : boolean Tell whether or not the user is anonymous
isAuthenticated ( ) : boolean Tell whether or not a user is logged in
isUser ( User $user ) : boolean Tells whether the authenticated user is this user

Описание методов

__construct() публичный метод

public __construct ( SecurityContext $securityContext )
$securityContext Symfony\Component\Security\Core\SecurityContext

getFunctions() публичный метод

Returns a list of global functions to add to the existing list.
public getFunctions ( ) : array
Результат array An array of global functions

getName() публичный метод

Returns the name of the extension.
public getName ( ) : string
Результат string The extension name

getUser() публичный метод

Returns the authenticated user, if any
public getUser ( ) : FOS\UserBundle\Model\User
Результат FOS\UserBundle\Model\User

isAnonymous() публичный метод

Tell whether or not the user is anonymous
public isAnonymous ( ) : boolean
Результат boolean

isAuthenticated() публичный метод

Tell whether or not a user is logged in
public isAuthenticated ( ) : boolean
Результат boolean

isUser() публичный метод

Tells whether the authenticated user is this user
public isUser ( User $user ) : boolean
$user User
Результат boolean

Описание свойств

$securityContext защищенное свойство

protected $securityContext