We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 052d53a commit d977c96Copy full SHA for d977c96
core/operations.md
@@ -468,19 +468,18 @@ The `subresourceOperations` attribute also allows you to add an access control o
468
469
```php
470
<?php
471
-// api/src/Entity/Question.php
+// api/src/Entity/Answer.php
472
473
/**
474
* ...
475
* @ApiResource(
476
* subresourceOperations={
477
- * "answer_get_subresource"= {
478
- * "method"="GET",
+ * "api_questions_answer_get_subresource"= {
479
* "access_control"="has_role('ROLE_AUTHENTICATED')"
480
* }
481
482
* )
483
- class Question
+ class Answer
484
{
485
}
486
```
0 commit comments