|
|
@ -2,12 +2,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace App\Controller;
|
|
|
|
namespace App\Controller;
|
|
|
|
|
|
|
|
|
|
|
|
use App\Composant\User\Domain\User;
|
|
|
|
|
|
|
|
use App\Composant\User\Infrastructure\DoctrineUser;
|
|
|
|
use App\Composant\User\Infrastructure\DoctrineUser;
|
|
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
use Doctrine\Persistence\ManagerRegistry;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
|
|
|
|
use function dd;
|
|
|
|
|
|
|
|
|
|
|
|
class test extends AbstractController
|
|
|
|
class test extends AbstractController
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -16,16 +15,7 @@ class test extends AbstractController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
#[Route('/foo', name: 'contact')]
|
|
|
|
* @Route(
|
|
|
|
|
|
|
|
* "/contact",
|
|
|
|
|
|
|
|
* name="contact",
|
|
|
|
|
|
|
|
* condition="context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'"
|
|
|
|
|
|
|
|
* )
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* expressions can also include configuration parameters:
|
|
|
|
|
|
|
|
* condition: "request.headers.get('User-Agent') matches '%app.allowed_browsers%'"
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function index(ManagerRegistry $registry): Response
|
|
|
|
public function index(ManagerRegistry $registry): Response
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$DoctrineUser = new DoctrineUser($registry);
|
|
|
|
$DoctrineUser = new DoctrineUser($registry);
|