Skip to content

Commit c00d630

Browse files
committed
pr requested changes
Signed-off-by: Howriq <horea@rospace.com>
1 parent 5081535 commit c00d630

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎docs/book/v1/chapter-3.md‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class RoutesDelegator
7474

7575
## Handling the Request
7676

77-
Now that the route is exists, we need to create the class that will handle our request.
77+
Now that the route exists, we need to create the class that will handle our request.
7878
Create a new directory `src/Book/src/Handler` and create the file `GetBooksHandler.php`.
7979

8080
```php
@@ -117,9 +117,9 @@ class GetBooksHandler implements RequestHandlerInterface
117117
The custom functions that we have created in the `BookRepository.php` retrieve our desired values and pass it to the `books` HTML template that is being rendered.
118118
We will crate the HTML file in the next part of this chapter.
119119

120-
## HTML Template for Book Listing
120+
## Twig Template for Book Listing
121121

122-
The `books` HTML template is currently missing, we now need to create it under the following path: `src/Book/src/templates/page/books.html.twig`.
122+
The `books` template is currently missing, we now need to create it under the following path: `src/Book/src/templates/page/books.html.twig`.
123123

124124
```html
125125
{% extends '@layout/default.html.twig' %}
@@ -172,8 +172,7 @@ The `books` HTML template is currently missing, we now need to create it under t
172172
Now that our route, handler, repository methods and view are ready, we need to **register them so the application can use them**.
173173
In `src/Book/src/ConfigProvider.php` we need to add the following changes:
174174

175-
![book-config-1](images/chapter-3/book-config-1.png)
176-
![book-config-2](images/chapter-3/book-config-2.png)
175+
![book-config](images/chapter-3/book-config.png)
177176

178177
```php
179178
public function __invoke(): array
@@ -201,7 +200,7 @@ private function getDependencies(): array
201200
}
202201

203202
/**
204-
@return array{
203+
* @return array{
205204
* paths: array{page: array{literal-string&non-falsy-string}}
206205
* }
207206
*/
@@ -304,7 +303,7 @@ There are two options in this case:
304303
- Use Doctrine Fixtures
305304
- Add entries manually from the Database Client.
306305

307-
**We recommend using fixtures**, but if you choose the alternative approach, feel free to skip directly to the **final section** of this chapter.
306+
**We recommend using fixtures**, but if you choose the alternative approach, feel free to skip directly to the [final](#listing-result) section of this chapter.
308307

309308
## Doctrine Fixtures
310309

-14.4 KB
Binary file not shown.
-7.54 KB
Binary file not shown.

0 commit comments

Comments
 (0)