| @@ 69-87 (lines=19) @@ | ||
| 66 | * |
|
| 67 | * @return Response |
|
| 68 | */ |
|
| 69 | public function listAction() |
|
| 70 | { |
|
| 71 | $this->action = 'list'; |
|
| 72 | ||
| 73 | /** @var ObjectManager $objectManager */ |
|
| 74 | $objectManager = $this->get('twomartens.core.db_manager'); |
|
| 75 | $repository = $objectManager->getRepository('TwoMartensCoreBundle:Group'); |
|
| 76 | $groups = $repository->findAll(); |
|
| 77 | ||
| 78 | $this->assignVariables(); |
|
| 79 | $this->templateVariables['groups'] = $groups; |
|
| 80 | $this->templateVariables['area']['title'] = $this->get('translator') |
|
| 81 | ->trans('acp.group.list', [], 'TwoMartensCoreBundle'); |
|
| 82 | ||
| 83 | return $this->render( |
|
| 84 | 'TwoMartensCoreBundle:ACPGroup:list.html.twig', |
|
| 85 | $this->templateVariables |
|
| 86 | ); |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * Shows the group add form. |
|
| @@ 71-89 (lines=19) @@ | ||
| 68 | * |
|
| 69 | * @return Response |
|
| 70 | */ |
|
| 71 | public function listAction() |
|
| 72 | { |
|
| 73 | $this->action = 'list'; |
|
| 74 | ||
| 75 | /** @var ObjectManager $objectManager */ |
|
| 76 | $objectManager = $this->get('twomartens.core.db_manager'); |
|
| 77 | $repository = $objectManager->getRepository('TwoMartensCoreBundle:User'); |
|
| 78 | $users = $repository->findAll(); |
|
| 79 | ||
| 80 | $this->assignVariables(); |
|
| 81 | $this->templateVariables['users'] = $users; |
|
| 82 | $this->templateVariables['area']['title'] = $this->get('translator') |
|
| 83 | ->trans('acp.user.list', [], 'TwoMartensCoreBundle'); |
|
| 84 | ||
| 85 | return $this->render( |
|
| 86 | 'TwoMartensCoreBundle:ACPUser:list.html.twig', |
|
| 87 | $this->templateVariables |
|
| 88 | ); |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * Shows the user add form. |
|