/**
  * Get the editable configuration from the database.
  *
  * This function gets a set of key=>value pairs for every editable
  * configuration item that is stored in the database.
  *
  * Keys are return in the format group.key
  *
  * @param  null|string $environment
  * @param  null|integer $website_id
  * @return array
  */
 public function get($environment = null, $website_id = null)
 {
     $groups = ConfigModel::fetchAllGroups();
     $result = [];
     foreach ($groups as $group) {
         $groupConfig = ConfigModel::fetchExactSettings($environment, $website_id, $group);
         foreach ($groupConfig as $key => $value) {
             $result[$group . '.' . $key] = $value;
         }
     }
     return $result;
 }
 /**
  * Fetch all configuration groups.
  *
  * @return array
  */
 public function fetchAllGroups()
 {
     $groups = ConfigModel::fetchAllGroups();
     return $groups;
 }