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.
21 lines
476 B
21 lines
476 B
<?php
|
|
|
|
//chargement config
|
|
require_once __DIR__ . '/config/config.php';
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
use gateway\UserGateway;
|
|
use config\Connection;
|
|
|
|
//twig
|
|
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
|
$twig = new \Twig\Environment($loader, [
|
|
'cache' => false,
|
|
]);
|
|
|
|
$gtw = new UserGateway(new Connection($dsn, $login, $password));
|
|
|
|
$results = $gtw->findAllUsers();
|
|
|
|
foreach ($results as $user) var_dump($user->getRoles()); |