dever 3 years ago
parent
commit
f170783d07
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/Doc.php

+ 3 - 1
lib/Doc.php

@@ -1,6 +1,8 @@
 <?php
 namespace Spider\Lib;
 use Dever;
+use Spider\Lib\Doc\Json;
+use Spider\Lib\Doc\Dom;
 
 class Doc
 {
@@ -125,7 +127,7 @@ class Doc
 
 	private function getClass()
 	{
-		return 'Spider\\Lib\\Doc\\' . ucfirst($this->type);
+		return ucfirst($this->type);
 	}
 
 	public function find($doc, $rule)