Initial commit
This commit is contained in:
27
skills/make-urls/templates/Urls/UtilisateurUrls.php
Normal file
27
skills/make-urls/templates/Urls/UtilisateurUrls.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Urls;
|
||||
|
||||
use App\Entity\Utilisateur;
|
||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
|
||||
final readonly class UtilisateurUrls
|
||||
{
|
||||
private function __construct(
|
||||
private UrlGeneratorInterface $urlGenerator,
|
||||
private Utilisateur $utilisateur,
|
||||
) {
|
||||
}
|
||||
|
||||
public static function new(
|
||||
UrlGeneratorInterface $urlGenerator,
|
||||
Utilisateur $utilisateur,
|
||||
): self {
|
||||
return new self(
|
||||
urlGenerator: $urlGenerator,
|
||||
utilisateur: $utilisateur,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user