You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Lc\ShopBundle\Controller\Admin;
  3. use FOS\UserBundle\Doctrine\UserManager;
  4. use FOS\UserBundle\Model\UserManagerInterface ;
  5. class UserController extends AdminController
  6. {
  7. public function createNewEntity()
  8. {
  9. return $this->userManager->createUser();
  10. }
  11. public function persistEntity($user)
  12. {
  13. $this->userManager->updateUser($user, false);
  14. parent::persistEntity($user);
  15. }
  16. public function updateEntity($user)
  17. {
  18. $this->userManager->updateUser($user, false);
  19. parent::updateEntity($user);
  20. }
  21. }