update
This commit is contained in:
parent
a3f12f9464
commit
6ea1f5bb82
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/vendor/
|
||||
.idea/
|
@ -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];
|
||||
|
@ -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": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user