Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
symfony_2504
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lech Sawoń
symfony_2504
Commits
82bf283c
Commit
82bf283c
authored
Oct 28, 2021
by
Lech Sawon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get room controller
parent
63504798
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
GetRoomController.php
src/Controller/Api/GetRoomController.php
+1
-1
No files found.
src/Controller/Api/GetRoomController.php
View file @
82bf283c
...
@@ -21,7 +21,7 @@ final class GetRoomController extends AbstractController
...
@@ -21,7 +21,7 @@ final class GetRoomController extends AbstractController
public
function
__invoke
(
Room
$room
,
SerializerInterface
$serializer
)
:
JsonResponse
public
function
__invoke
(
Room
$room
,
SerializerInterface
$serializer
)
:
JsonResponse
{
{
// jak zronbić, żeby encja nie robiła wszystkiego (serializacj, walidacja, mapowanie na baze)
// jak zronbić, żeby encja nie robiła wszystkiego (serializacj, walidacja, mapowanie na baze)
// 1. przyjmuje po prostu id jako int albo IdDto
// 1. przyjmuje po prostu id jako int albo IdDto
, (nie używamy automtycznego param convertera)
// 2. przekazujemy id do odpowiedniego serwisu
// 2. przekazujemy id do odpowiedniego serwisu
// 3. serwis pyta baza danych i zwraca Dto, które tworzy na podstawie encji
// 3. serwis pyta baza danych i zwraca Dto, które tworzy na podstawie encji
// 4. serializujemy dto.
// 4. serializujemy dto.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment