mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +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(
|
new Post(
|
||||||
normalizationContext: ['groups' => ['connector:create', 'connector:list']],
|
normalizationContext: ['groups' => ['connector:create', 'connector:list']],
|
||||||
denormalizationContext: ['groups' => 'connector:create'],
|
denormalizationContext: ['groups' => 'connector:create'],
|
||||||
name: 'create',
|
|
||||||
processor: ConnectorCreateProcessor::class
|
processor: ConnectorCreateProcessor::class
|
||||||
),
|
),
|
||||||
new Delete(
|
new Delete(
|
||||||
security: 'object.user == user',
|
security: 'object.user == user',
|
||||||
name: 'delete',
|
|
||||||
processor: ConnectorDeleteProcessor::class
|
processor: ConnectorDeleteProcessor::class
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|||||||
@ -34,7 +34,6 @@ use Symfony\Component\Serializer\Attribute\Groups;
|
|||||||
controller: RegistrationController::class,
|
controller: RegistrationController::class,
|
||||||
denormalizationContext: ['groups' => ['user:register']],
|
denormalizationContext: ['groups' => ['user:register']],
|
||||||
read: false,
|
read: false,
|
||||||
name: 'register'
|
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
)]
|
)]
|
||||||
|
|||||||
@ -86,14 +86,12 @@ use Symfony\Component\Uid\Uuid;
|
|||||||
new Post(
|
new Post(
|
||||||
normalizationContext: ['groups' => 'watchlist:list'],
|
normalizationContext: ['groups' => 'watchlist:list'],
|
||||||
denormalizationContext: ['groups' => 'watchlist:create'],
|
denormalizationContext: ['groups' => 'watchlist:create'],
|
||||||
name: 'create',
|
|
||||||
processor: WatchListUpdateProcessor::class,
|
processor: WatchListUpdateProcessor::class,
|
||||||
),
|
),
|
||||||
new Put(
|
new Put(
|
||||||
normalizationContext: ['groups' => 'watchlist:item'],
|
normalizationContext: ['groups' => 'watchlist:item'],
|
||||||
denormalizationContext: ['groups' => ['watchlist:create', 'watchlist:token']],
|
denormalizationContext: ['groups' => ['watchlist:create', 'watchlist:token']],
|
||||||
security: 'object.user == user',
|
security: 'object.user == user',
|
||||||
name: 'update',
|
|
||||||
processor: WatchListUpdateProcessor::class,
|
processor: WatchListUpdateProcessor::class,
|
||||||
),
|
),
|
||||||
new Delete(
|
new Delete(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user