code: public function set($id, $value = null) {
          $args = func_get_args();
  
          return $this->rethrowExceptions(function() use ($args) {
              return call_user_func_array([$this->registry, 'createDefinition'], $args);
          });
      }
docs: @param string $id
  @param $value
  
  @return IDefinition