Controller/GroupController.php
public function listAction()
    {
        $acl = $this->get('bacon_acl.service.authorization');

        if (!$acl->authorize('groups', 'INDEX')) {
            throw $this->createAccessDeniedException();
        }

        $groups = $this->get('fos_user.group_manager')->findGroups();

        return $this->render('FOSUserBundle:Group:list.html.twig', array(
            'groups' => $groups
        ));
    }
public function listAction()
    {
        $acl = $this->get('bacon_acl.service.authorization');

        if (!$acl->authorize('groups', 'INDEX')) {
            throw $this->createAccessDeniedException();
        }

        $groups = $this->get('fos_user.group_manager')->findGroups();

        return $this->render('FOSUserBundle:Group:list.html.twig', array(
            'groups' => $groups
        ));
    }
public function listAction ( ) { $ acl = $ this -> get ( 'bacon_acl.service.authorization' ) ; if ( ! $ acl -> authorize ( 'groups' , 'INDEX' ) ) { throw $ this -> createAccessDeniedException ( ) ; } $ groups = $ this -> get ( 'fos_user.group_manager' ) -> findGroups ( ) ; return $ this -> render ( 'FOSUserBundle:Group:list.html.twig' , array ( 'groups' => $ groups ) ) ; }
Show all groups
Show all groups