$user can be either the user ID or an instance of \eZ\Publish\Core\MVC\Symfony\Security\User
(anonymous user we try to check access via SecurityContext::isGranted()).
public loadUserByUsername ( string | |
||
$user | string | |
Either the user ID to load an instance of User object. A value of -1 represents an anonymous user. |
Результат | eZ\Publish\Core\MVC\Symfony\Security\UserInterface |