Guest User

1111

a guest
Dec 10th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. * @ApiResource(
  2. * attributes={"security"="is_granted('ROLE_ADMIN')"},
  3. * denormalizationContext={"groups"={
  4. * "transportCompanyWrite"
  5. * },
  6. * "enable_max_depth"=true
  7. * },
  8. * normalizationContext={
  9. * "groups"={
  10. * "transportCompanyRead"
  11. * },
  12. * "enable_max_depth"=true
  13. * },
  14. * collectionOperations={
  15. * "get"={"security"="is_granted('ROLE_ADMIN')"}
  16. * },
  17. * itemOperations={
  18. * "get", "put"
  19. * }
  20. * )
Advertisement
Add Comment
Please, Sign In to add comment