Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
PartKeepr
AuthBundle
Services
UserService
protect
PartKeepr\AuthBundle\Services\UserService::protect PHP Method
UserService Class Documentation
Show file
Open project: partkeepr/PartKeepr
protect()
public
method
Protects a given user against changes.
public
protect
(
User
$user
)
$user
PartKeepr\AuthBundle\Entity\User
public function protect(User $user) { $user->setProtected(true); $this->entityManager->flush(); }
UserService
__construct
checkUserLimit
createProxyUser
deleteFOSUser
getBuiltinProvider
getProvider
getProviderByType
getProviderTypeByClass
getProxyUser
getUser
getUserCount
protect
syncData
unprotect