]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Controller/UserController.php
Add default facebook image source
[airbundle] / Controller / UserController.php
index dcd448bfa6b4aaa53a23559920c01c1ed51a764a..963f538d1d68e8216d9505a5a45857c388144083 100644 (file)
@@ -6,11 +6,13 @@ use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\Routing\RequestContext;
 use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\Routing\RequestContext;
 use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
-use Rapsys\AirBundle\Entity\Slot;
-use Rapsys\AirBundle\Entity\Session;
+
+use Rapsys\AirBundle\Entity\Civility;
 use Rapsys\AirBundle\Entity\Location;
 use Rapsys\AirBundle\Entity\Location;
-use Rapsys\AirBundle\Entity\User;
+use Rapsys\AirBundle\Entity\Session;
+use Rapsys\AirBundle\Entity\Slot;
 use Rapsys\AirBundle\Entity\Snippet;
 use Rapsys\AirBundle\Entity\Snippet;
+use Rapsys\AirBundle\Entity\User;
 
 class UserController extends DefaultController {
        /**
 
 class UserController extends DefaultController {
        /**
@@ -147,6 +149,8 @@ class UserController extends DefaultController {
                                'action' => $this->generateUrl('rapsys_air_user_view', ['id' => $id]),
                                //Set the form attribute
                                'attr' => [ 'class' => 'col' ],
                                'action' => $this->generateUrl('rapsys_air_user_view', ['id' => $id]),
                                //Set the form attribute
                                'attr' => [ 'class' => 'col' ],
+                               //Set civility class
+                               'class_civility' => Civility::class,
                                //Disable mail
                                'mail' => $this->isGranted('ROLE_ADMIN'),
                                //Disable password
                                //Disable mail
                                'mail' => $this->isGranted('ROLE_ADMIN'),
                                //Disable password