mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 09:45:29 +00:00
Merge branch 'master' into test/add-phpunit
This commit is contained in:
commit
f07f95d0c3
@ -32,12 +32,10 @@ use Symfony\Component\Uid\Uuid;
|
||||
new Post(
|
||||
normalizationContext: ['groups' => ['connector:create', 'connector:list']],
|
||||
denormalizationContext: ['groups' => 'connector:create'],
|
||||
name: 'create',
|
||||
processor: ConnectorCreateProcessor::class
|
||||
),
|
||||
new Delete(
|
||||
security: 'object.user == user',
|
||||
name: 'delete',
|
||||
processor: ConnectorDeleteProcessor::class
|
||||
),
|
||||
]
|
||||
|
||||
@ -34,7 +34,6 @@ use Symfony\Component\Serializer\Attribute\Groups;
|
||||
controller: RegistrationController::class,
|
||||
denormalizationContext: ['groups' => ['user:register']],
|
||||
read: false,
|
||||
name: 'register'
|
||||
),
|
||||
]
|
||||
)]
|
||||
|
||||
@ -86,14 +86,12 @@ use Symfony\Component\Uid\Uuid;
|
||||
new Post(
|
||||
normalizationContext: ['groups' => 'watchlist:list'],
|
||||
denormalizationContext: ['groups' => 'watchlist:create'],
|
||||
name: 'create',
|
||||
processor: WatchListUpdateProcessor::class,
|
||||
),
|
||||
new Put(
|
||||
normalizationContext: ['groups' => 'watchlist:item'],
|
||||
denormalizationContext: ['groups' => ['watchlist:create', 'watchlist:token']],
|
||||
security: 'object.user == user',
|
||||
name: 'update',
|
||||
processor: WatchListUpdateProcessor::class,
|
||||
),
|
||||
new Delete(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user