This commit is contained in:
x 2015-12-27 23:38:47 +08:00
parent a3f12f9464
commit 6ea1f5bb82
3 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/vendor/
.idea/

View File

@ -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];

View File

@ -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": [