public function getResolver(string $type)
    {
        if (!isset($this->resolvers[$type]))
            throw new \InvalidArgumentException("Unknown resolver type: " . $type);
        return $this->resolvers[$type]['resolver'];
    }