예제 #1
0
 /**
  * Map configuration to allow orchestra to store it in database.
  *
  * @param  string  $name
  * @param  array   $aliases
  *
  * @return bool
  */
 public function map($name, $aliases)
 {
     $memory = $this->memory->make();
     $meta = $memory->get("extension_{$name}", []);
     foreach ($aliases as $current => $default) {
         isset($meta[$current]) && $this->config->set($default, $meta[$current]);
         $meta[$current] = $this->config->get($default);
     }
     $memory->put("extension_{$name}", $meta);
     return true;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function reload()
 {
     $this->memory->put('elepunk_evaluator', $this->expressions());
 }