acl->checkScope($entityType)) { throw new ForbiddenSilent(); } if (!$action || !$id) { throw new BadRequest(); } $actionParams = new Params($entityType, $id); $actionProcessor = $this->factory->create($action, $entityType); $actionProcessor->process( $actionParams, Data::fromRaw($data) ); $service = $this->recordServiceContainer->get($entityType); return $service->read($id, ReadParams::create()); } }