Skip to content

Commit 1113a82

Browse files
authored
Merge pull request #721 from Deuchnord/patch-2
Add a tip to use MakerBundle to create resources
2 parents 393f92f + d75fcfa commit 1113a82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

distribution/index.md

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

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

0 commit comments

Comments
 (0)