acl = $acl; $this->merger = $merger; } public function process(Params $params, Data $data): void { $entityType = $params->getEntityType(); if (!$this->acl->checkScope($entityType, Table::ACTION_EDIT)) { throw new Forbidden(); } $sourceIdList = $data->get('sourceIdList'); $attributes = $data->get('attributes'); if (!is_array($sourceIdList)) { throw new BadRequest("No 'sourceIdList'."); } if (!$attributes instanceof stdClass) { throw new BadRequest("No 'attributes'."); } $this->merger->process($params, $sourceIdList, $attributes); } }