Skip to content

Commit d75fcfa

Browse files
author
Jérôme Deuchnord
committed
Move the tip to the general Getting Started section
1 parent 4bc600e commit d75fcfa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/getting-started.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,6 @@ class Offer
143143
It is the minimal configuration required to expose `Product` and `Offer` entities as JSON-LD documents through an hypermedia
144144
web API.
145145

146-
**Tip**: you can also use Symfony [MakerBundle](https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html) thanks to the `--api-resource` option:
147-
148-
```bash
149-
docker-compose exec php bin/console make:entity --api-resource
150-
```
151-
152146
If you are familiar with the Symfony ecosystem, you noticed that entity classes are also mapped with Doctrine ORM annotations
153147
and validation constraints from [the Symfony Validator Component](http://symfony.com/doc/current/book/validation.html).
154148
This isn't mandatory. You can use [your preferred persistence](data-providers.md) and [validation](validation.md) systems.

distribution/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,12 @@ class Review
348348
}
349349
```
350350

351+
**Tip**: you can also use Symfony [MakerBundle](https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html) thanks to the `--api-resource` option:
352+
353+
```bash
354+
docker-compose exec php bin/console make:entity --api-resource
355+
```
356+
351357
As you can see there are two typical PHP objects with the corresponding PHPDoc (note that entities's and properties's descriptions
352358
included in their PHPDoc will appear in the API documentation).
353359

0 commit comments

Comments
 (0)