|
|
|
@@ -15,7 +15,6 @@ use ApiPlatform\Metadata\GetCollection; |
|
|
|
use ApiPlatform\Metadata\Post; |
|
|
|
use ApiPlatform\OpenApi\Model; |
|
|
|
use App\Controller\CreateMediaObjectAction; |
|
|
|
use App\Controller\DeleteMediaObjectAction; |
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
use Symfony\Component\HttpFoundation\File\File; |
|
|
|
use Symfony\Component\Serializer\Annotation\Groups; |
|
|
|
@@ -53,7 +52,7 @@ use Vich\UploaderBundle\Mapping\Annotation as Vich; |
|
|
|
deserialize: false |
|
|
|
), |
|
|
|
new Delete( |
|
|
|
controller: DeleteMediaObjectAction::class |
|
|
|
// controller: DeleteMediaObjectAction::class |
|
|
|
), |
|
|
|
], |
|
|
|
normalizationContext: ['groups' => ['media_object:read']] |
|
|
|
|