code: public function add(string $name, string $root): self {
          $this->_current_extension            = $name;
          $this->_extensions[$name]['root']    = $root;
          return $this;
      }
docs: 添加一个扩展
  @param string $name
  @param string $root
  @return self