Created
June 26, 2019 18:19
-
-
Save piotrbrzezina/0efc33a736bce5b0470b4fdf458d0cac to your computer and use it in GitHub Desktop.
Flashcard step 9 (security advance)
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
<?php | |
/** | |
* @ApiResource( | |
* ... | |
* itemOperations={ | |
* "get" = { object.user == user" }, | |
* "put" = { object.user == user" } | |
* }, | |
* ) | |
* | |
* @ORM\Entity | |
*/ | |
class Subject | |
{ | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment