Skip to content

Commit e713b42

Browse files
authored
change 2 more commands to use recommended install way (docker)
1 parent 9fa70a4 commit e713b42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

symfony/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ Modify these files as described in these patches:
471471
**Tip**: You can use Symfony [MakerBundle](https://symfonycasts.com/screencast/symfony-fundamentals/maker-command?cid=apip) to generate a Doctrine entity that is also a resource thanks to the `--api-resource` option:
472472

473473
```console
474-
bin/console make:entity --api-resource
474+
docker compose exec php bin/console make:entity --api-resource
475475
```
476476

477477
Doctrine's [attributes](https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/attributes-reference.html) map these entities to tables in the database.
@@ -681,7 +681,7 @@ Isn't API Platform a REST **and** GraphQL framework? That's true! GraphQL suppor
681681
need to install the [graphql-php](https://webonyx.github.io/graphql-php/) library. Run the following command:
682682

683683
```console
684-
composer require api-platform/graphql
684+
docker compose exec php composer require api-platform/graphql
685685
```
686686

687687
You now have a GraphQL API! Open `https://localhost/graphql` (or `https://localhost/api/graphql` if you used Symfony Flex

0 commit comments

Comments
 (0)