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.

UserController.php 777B

4 jaren geleden
4 jaren geleden
4 jaren geleden
1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Lc\ShopBundle\Controller\Backend;
  3. use App\Form\Backend\Common\AddressType;
  4. use FOS\UserBundle\Doctrine\UserManager;
  5. use FOS\UserBundle\Model\UserManagerInterface ;
  6. use Lc\ShopBundle\Context\AddressInterface;
  7. use Lc\ShopBundle\Model\Address;
  8. class UserController extends AdminController
  9. {
  10. public function createNewEntity()
  11. {
  12. return $this->userManager->createUser();
  13. }
  14. public function persistEntity($user)
  15. {
  16. $this->userManager->updateUser($user, false);
  17. parent::persistEntity($user);
  18. }
  19. public function updateEntity($user)
  20. {
  21. $this->userManager->updateUser($user, false);
  22. parent::updateEntity($user);
  23. }
  24. }