I have a question on api platform custom routes functionality. When trying to implement custom route with DELETE method the event system is triggered for object in http request (that is found by param converter):
* @ApiResource(
* attributes={
* "normalization_context": {
* },
* "denormalization_context": {
* },
* },
* itemOperations={
* },
* collectionOperations={
* "customObjectRemove": {
* "method": "DELETE",
* "path": "/objects/{id}/custom_remove",
* "controller": CustomObjectRemoveController::class,
So, even I have written my own logic in controller my entity is always triggered for removal in api platform event system. How can I prevent this behavior?