PHP Class Sulu\Bundle\SecurityBundle\Controller\ProfileController

Inheritance: implements FOS\RestBundle\Routing\ClassResourceInterface
Mostrar archivo Open project: sulu/sulu

Protected Properties

Property Type Description
$entityNameUserSetting

Public Methods

Method Description
__construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Doctrine\Common\Persistence\ObjectManager $objectManager, FOS\RestBundle\View\ViewHandlerInterface $viewHandler, Sulu\Component\Security\Authentication\UserSettingRepositoryInterface $userSettingRepository )
deleteSettingsAction ( Request $request ) : Response Deletes a user setting by a given key.
putLanguageAction ( Request $request ) : Response Sets the given language on the current user.
putSettingsAction ( Request $request ) : Response Takes a key, value pair and stores it as settings for the user.

Method Details

__construct() public method

public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Doctrine\Common\Persistence\ObjectManager $objectManager, FOS\RestBundle\View\ViewHandlerInterface $viewHandler, Sulu\Component\Security\Authentication\UserSettingRepositoryInterface $userSettingRepository )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$objectManager Doctrine\Common\Persistence\ObjectManager
$viewHandler FOS\RestBundle\View\ViewHandlerInterface
$userSettingRepository Sulu\Component\Security\Authentication\UserSettingRepositoryInterface

deleteSettingsAction() public method

Deletes a user setting by a given key.
public deleteSettingsAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

putLanguageAction() public method

Sets the given language on the current user.
public putLanguageAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

putSettingsAction() public method

Takes a key, value pair and stores it as settings for the user.
public putSettingsAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

Property Details

$entityNameUserSetting protected_oe static_oe property

protected static $entityNameUserSetting