Created
June 26, 2019 16:27
-
-
Save piotrbrzezina/c7a5a14303183f1fb27bff009ba124e1 to your computer and use it in GitHub Desktop.
Flashcard step 9 (security)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @ApiResource( | |
* normalizationContext={"groups"={"subjectList"}}, | |
* denormalizationContext={"groups"={"subjectCreate"}}, | |
* itemOperations={"get","put"}, | |
* attributes={"access_control"="is_granted('ROLE_USER')"} | |
* ) | |
* | |
* @ORM\Entity | |
*/ | |
class Subject | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment