src/Phlexible/Bundle/UserBundle/Controller/OptionsController.php
public function savedetailsAction(Request $request)
    {
        $user = $this->getUser()
            ->setFirstname($request->request->get('firstname'))
            ->setLastname($request->request->get('lastname'))
            ->setEmail($request->request->get('email'));

        $this->get('phlexible_user.user_manager')->updateUser($user);

        return new ResultResponse(true, 'User details saved.');
    }
public function savedetailsAction(Request $request)
    {
        $user = $this->getUser()
            ->setFirstname($request->request->get('firstname'))
            ->setLastname($request->request->get('lastname'))
            ->setEmail($request->request->get('email'));

        $this->get('phlexible_user.user_manager')->updateUser($user);

        return new ResultResponse(true, 'User details saved.');
    }
public function savedetailsAction ( Request $ request ) { $ user = $ this -> getUser ( ) -> setFirstname ( $ request -> request -> get ( 'firstname' ) ) -> setLastname ( $ request -> request -> get ( 'lastname' ) ) -> setEmail ( $ request -> request -> get ( 'email' ) ) ; $ this -> get ( 'phlexible_user.user_manager' ) -> updateUser ( $ user ) ; return new ResultResponse ( true , 'User details saved.' ) ; }
Save details.

@param Request $request

@return ResultResponse
@Route("/savedetails", name="users_options_savedetails")
Save details .