chore: remove the seed command and the dev login

This commit is contained in:
fromme committed 2026-09-17 17:55:58 +02:00
1 parent 376251b6d6
commit dc1822b8cf
7 files changed
-320

No files matched your search

-38
View File
@@ -1,38 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Controller\Dev;
use App\Repository\UserRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\Attribute\When;
use Symfony\Component\HttpFoundation\Response;
/**
* Dev-only "log in as" picker, standing in for OAuth2 against myep until the client is
* registered there (plan step 6).
*
* Deliberately carries no #[Route] attribute: the routes are declared in
* config/routes/dev_login.yaml under `when@dev`, so this cannot be reached in any other
* environment even if the class were somehow registered.
*/
#[When('dev')]
final class LoginController extends AbstractController
{
public function __construct(private readonly UserRepository $users)
{
}
public function index(): Response
{
if ($this->getUser()) {
return $this->redirectToRoute('app_dashboard');
}
// POST never reaches here -- DevLoginAuthenticator intercepts it on the firewall.
return $this->render('dev/login.html.twig', [
'users' => $this->users->findBy([], ['name' => 'ASC']),
]);
}
}