serviceFactory = $serviceFactory; } public function postActionStore(Request $request) { $data = $request->getParsedBody(); $entityType = $data->entityType; $group = $data->group; $ids = $data->ids; if (empty($entityType) || !is_string($entityType)) { throw new BadRequest(); } if (empty($group) || !is_string($group)) { throw new BadRequest(); } if (!is_array($ids)) { throw new BadRequest(); } $this->serviceFactory ->create('KanbanOrder') ->order($entityType, $group, $ids); return true; } }