src/Weew/Container/Container.php
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);
        });
    }
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);
        });
    }
@param string $id
@param $value

@return IDefinition