Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Controller;
- use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- use Symfony\Component\Security\Core\User\UserInterface;
- class UserController extends Controller
- {
- public function indexAction($name)
- {
- $entityManager = $this->getDoctrine()->getManager();
- $users = $entityManager->getRepository(UserInterface::class)->findAll();
- return $this->render('mytemplate.html.twig', [
- 'users' => $users
- ]);
- }
- }
Add Comment
Please, Sign In to add comment