M1: CRUD-Slice 'Mahlzeit' Schritt 2 – UI (Controller, Templates, Routen, Feature-Tests)
This commit is contained in:
@@ -16,4 +16,6 @@ doctrine:
|
||||
when@test:
|
||||
doctrine:
|
||||
dbal:
|
||||
url: 'sqlite:///:memory:'
|
||||
# Datei-basiert (statt :memory:), damit das Schema über Request-Grenzen
|
||||
# und geteilte Kernel-/Connection-Instanzen hinweg stabil bleibt.
|
||||
url: 'sqlite:///%kernel.project_dir%/var/test.db'
|
||||
|
||||
@@ -19,3 +19,40 @@ logout:
|
||||
path: /logout
|
||||
controller: App\UI\Http\Auth\OidcAuthController::logout
|
||||
methods: [GET, POST]
|
||||
|
||||
# M1: CRUD-Slice "Mahlzeit" (Web-UI, POST/Redirect/Flash)
|
||||
mahlzeiten_index:
|
||||
path: /mahlzeiten
|
||||
controller: App\UI\Http\Essen\MahlzeitController::index
|
||||
methods: [GET]
|
||||
|
||||
mahlzeiten_neu:
|
||||
path: /mahlzeiten/neu
|
||||
controller: App\UI\Http\Essen\MahlzeitController::neu
|
||||
methods: [GET]
|
||||
|
||||
mahlzeiten_speichern:
|
||||
path: /mahlzeiten
|
||||
controller: App\UI\Http\Essen\MahlzeitController::speichern
|
||||
methods: [POST]
|
||||
|
||||
mahlzeiten_bearbeiten:
|
||||
path: /mahlzeiten/{id}/bearbeiten
|
||||
controller: App\UI\Http\Essen\MahlzeitController::bearbeiten
|
||||
methods: [GET]
|
||||
requirements:
|
||||
id: \d+
|
||||
|
||||
mahlzeiten_aktualisieren:
|
||||
path: /mahlzeiten/{id}
|
||||
controller: App\UI\Http\Essen\MahlzeitController::aktualisieren
|
||||
methods: [POST]
|
||||
requirements:
|
||||
id: \d+
|
||||
|
||||
mahlzeiten_loeschen:
|
||||
path: /mahlzeiten/{id}/loeschen
|
||||
controller: App\UI\Http\Essen\MahlzeitController::loeschen
|
||||
methods: [POST]
|
||||
requirements:
|
||||
id: \d+
|
||||
|
||||
Reference in New Issue
Block a user