/** * store the current state of scope values. * * @param $scope string * @param $value ParameterBag * @return void */ public function store(string $scope, ParameterBag $values) { $mapper = Database::connect()->mapper('Tiimber\\Memory\\Sql'); $entity = $mapper->build(['scope' => $scope, 'values' => $values->serialize()]); $mapper->save($entity); }