Skip to content

Instantly share code, notes, and snippets.

@piotrbrzezina
Created June 26, 2019 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piotrbrzezina/c7a5a14303183f1fb27bff009ba124e1 to your computer and use it in GitHub Desktop.
Save piotrbrzezina/c7a5a14303183f1fb27bff009ba124e1 to your computer and use it in GitHub Desktop.
Flashcard step 9 (security)
/**
* @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