| @@ -1,18 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * @copyright © TMS-Plugins. All rights reserved. | |
| 4 | + * @copyright © Melograno Venture Studio. All rights reserved. | |
| 5 | 5 | * @licence See COPYING.md for license details. |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace IvyForms\Controllers\Form; |
| 9 | 9 | |
| 10 | -// phpcs:disable PSR1.Files.SideEffects | |
| 11 | -if (!defined('ABSPATH')) { | |
| 12 | - exit; // Exit if accessed directly | |
| 13 | -} | |
| 14 | - | |
| 15 | 10 | use IvyForms\Common\Exceptions\ForbiddenException; |
| 16 | 11 | use IvyForms\Common\Exceptions\InvalidArgumentException; |
| 17 | 12 | use IvyForms\Common\Exceptions\QueryExecutionException; |
| 18 | 13 | use IvyForms\Common\Sanitizer\Sanitizer; |
| @@ -76,9 +71,9 @@ | ||
| 76 | 71 | |
| 77 | 72 | // Sanitize the input data |
| 78 | 73 | $formId = Sanitizer::sanitizeId($data->get_param('id')); |
| 79 | 74 | |
| 80 | - $this->entryService->deleteEntriesByFormIds([$formId]); | |
| 75 | + $this->entryService->getDeletionManager()->deleteEntriesByFormIds([$formId]); | |
| 81 | 76 | $this->confirmationService->deleteConfirmationsByFormIds([$formId]); |
| 82 | 77 | $this->notificationService->deleteNotificationsByFormIds([$formId]); |
| 83 | 78 | $this->fieldService->deleteFieldsByFormIds([$formId]); |
| 84 | 79 | $this->formService->deleteForm($formId); |