|
@@ -90,7 +90,6 @@ class Hook
|
|
|
public static function listen($tag, &$params = null, $extra = null, $once = false)
|
|
|
{
|
|
|
$results = [];
|
|
|
- var_dump(static::get($tag));
|
|
|
foreach (static::get($tag) as $key => $name) {
|
|
|
$results[$key] = self::exec($name, $tag, $params, $extra);
|
|
|
|
|
@@ -135,6 +134,7 @@ class Hook
|
|
|
$obj = new $class();
|
|
|
$method = ($tag && is_callable([$obj, $method])) ? $method : 'run';
|
|
|
$result = $obj->$method($params, $extra);
|
|
|
+ var_dump($result);
|
|
|
}
|
|
|
|
|
|
if (App::$debug) {
|