deleteController = $deleteController; } public function handle(Request $request): Response { /** @var int $automationId */ $automationId = $request->getParam('id'); $automationId = intval($automationId); $this->deleteController->deleteAutomation($automationId); return new Response(null); } public static function getRequestSchema(): array { return [ 'id' => Builder::integer()->required(), ]; } }