PHP 클래스 PartKeepr\AuthBundle\Services\UserService

파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage $tokenStorage, EntityManager $entityManager, FOS\UserBundle\Util\UserManipulator $userManipulator, FOS\UserBundle\Model\UserManagerInterface $userManager, $userLimit = false )
checkUserLimit ( ) : boolean Checks if the amount of users is exceeded.
deleteFOSUser ( User $user ) Deletes an user from the FOSUser system.
getBuiltinProvider ( )
getProvider ( $providerClass )
getProviderByType ( $type )
getProviderTypeByClass ( $providerClass )
getProxyUser ( $username, UserProvider $provider, boolean | false $create = false ) : mixed | User Returns the proxy user for a given username and provider.
getUser ( ) : User Returns the PartKeeprUser based on the user token within the Symfony2 environment.
getUserCount ( ) : mixed Returns the number of users present in the system.
protect ( User $user ) Protects a given user against changes.
syncData ( User $user ) Syncronizes the data of the given user with the FOSRestBundle.
unprotect ( User $user ) Unprotects a given user against changes.

비공개 메소드들

메소드 설명
createProxyUser ( $username, $provider )

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage $tokenStorage, EntityManager $entityManager, FOS\UserBundle\Util\UserManipulator $userManipulator, FOS\UserBundle\Model\UserManagerInterface $userManager, $userLimit = false )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage
$entityManager Doctrine\ORM\EntityManager
$userManipulator FOS\UserBundle\Util\UserManipulator
$userManager FOS\UserBundle\Model\UserManagerInterface

checkUserLimit() 공개 메소드

Checks if the amount of users is exceeded.
public checkUserLimit ( ) : boolean
리턴 boolean

deleteFOSUser() 공개 메소드

Deletes an user from the FOSUser system.
public deleteFOSUser ( User $user )
$user PartKeepr\AuthBundle\Entity\User

getBuiltinProvider() 공개 메소드

public getBuiltinProvider ( )

getProvider() 공개 메소드

public getProvider ( $providerClass )

getProviderByType() 공개 메소드

public getProviderByType ( $type )

getProviderTypeByClass() 공개 메소드

public getProviderTypeByClass ( $providerClass )

getProxyUser() 공개 메소드

Returns the proxy user for a given username and provider.
public getProxyUser ( $username, UserProvider $provider, boolean | false $create = false ) : mixed | User
$username
$provider PartKeepr\AuthBundle\Entity\UserProvider
$create boolean | false If set to true
리턴 mixed | PartKeepr\AuthBundle\Entity\User

getUser() 공개 메소드

Returns the PartKeeprUser based on the user token within the Symfony2 environment.
public getUser ( ) : User
리턴 PartKeepr\AuthBundle\Entity\User The proxy user

getUserCount() 공개 메소드

Returns the number of users present in the system.
public getUserCount ( ) : mixed
리턴 mixed

protect() 공개 메소드

Protects a given user against changes.
public protect ( User $user )
$user PartKeepr\AuthBundle\Entity\User

syncData() 공개 메소드

Syncronizes the data of the given user with the FOSRestBundle.
public syncData ( User $user )
$user PartKeepr\AuthBundle\Entity\User

unprotect() 공개 메소드

Unprotects a given user against changes.
public unprotect ( User $user )
$user PartKeepr\AuthBundle\Entity\User