|
@@ -23,15 +23,15 @@ |
|
|
block discarded – undo |
|
23
|
23
|
#[ApiResource( |
|
24
|
24
|
operations: [ |
|
25
|
25
|
new Get(security: 'is_granted(\'ROLE_ADMIN\') or is_granted(\'ROLE_CLIENT\')'), |
|
26
|
|
- new Put(security: 'is_granted(\'ROLE_CLIENT\')', denormalizationContext: ['groups' => ['product_group_write']]), |
|
|
26
|
+ new Put(security: 'is_granted(\'ROLE_CLIENT\')', denormalizationContext: [ 'groups' => [ 'product_group_write' ] ]), |
|
27
|
27
|
new Delete(security: 'is_granted(\'ROLE_CLIENT\')'), |
|
28
|
28
|
new Post(securityPostDenormalize: 'is_granted(\'ROLE_CLIENT\')'), |
|
29
|
29
|
new GetCollection(security: 'is_granted(\'ROLE_ADMIN\') or is_granted(\'ROLE_CLIENT\')') |
|
30
|
30
|
], |
|
31
|
|
- formats: ['jsonld', 'json', 'html', 'jsonhal', 'csv' => ['text/csv']], |
|
32
|
|
- normalizationContext: ['groups' => ['product_group_read']], |
|
33
|
|
- denormalizationContext: ['groups' => ['product_group_write']] |
|
34
|
|
-)] |
|
|
31
|
+ formats: [ 'jsonld', 'json', 'html', 'jsonhal', 'csv' => [ 'text/csv' ] ], |
|
|
32
|
+ normalizationContext: [ 'groups' => [ 'product_group_read' ] ], |
|
|
33
|
+ denormalizationContext: [ 'groups' => [ 'product_group_write' ] ] |
|
|
34
|
+) ] |
|
35
|
35
|
class ProductGroupProducts |
|
36
|
36
|
{ |
|
37
|
37
|
/** |
Please login to merge, or discard this patch.