diff --git a/.gitignore b/.gitignore index 57872d0..20a939e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /vendor/ +.idea/ \ No newline at end of file diff --git a/QueryList.php b/QueryList.php index a5f0712..974c91c 100644 --- a/QueryList.php +++ b/QueryList.php @@ -2,7 +2,7 @@ namespace QL; -use phpQuery,Exception; +use phpQuery,Exception,ReflectionClass; /** * QueryList @@ -94,7 +94,7 @@ class QueryList */ public static function run($class,$args = array()) { - $extension = self::getInstance($class); + $extension = self::getInstance("QL\\Ext\\{$class}"); return $extension->run($args); } @@ -113,7 +113,7 @@ class QueryList throw new Exception("no class {$className}"); } if(!isset(self::$instances[$key])) { - $rc = new \ReflectionClass($className); + $rc = new ReflectionClass($className); self::$instances[$key] = $rc->newInstanceArgs($args); } return self::$instances[$key]; diff --git a/composer.json b/composer.json index 8517664..ee4462a 100644 --- a/composer.json +++ b/composer.json @@ -5,8 +5,8 @@ "PHP":">=5.3.0", "jaeger/phpquery-single": "^0.9.5", "jaeger/querylist-ext-aquery":"dev-master", - "jaeger/curlmulti":"dev-master", - "jaeger/http":"dev-master" + "jaeger/querylist-ext-request":"dev-master", + "jaeger/curlmulti":"dev-master" }, "license": "MIT", "authors": [