Beispiel #1
0
 public function __debugInfo()
 {
     $ref = $this->getReflection();
     if ($ref instanceof \ReflectionMethod) {
         $callback = [$ref->getDeclaringClass()->name, $ref->name];
     } elseif ($ref->isClosure()) {
         $callback = '*closure*';
     } else {
         $callback = $ref->name;
     }
     return array_merge(parent::__debugInfo(), ['event' => $this->eventName, 'listener' => $callback]);
 }
Beispiel #2
0
 public function __debugInfo()
 {
     if ($this->reflection === NULL) {
         $this->reflection = new \ReflectionMethod(get_class($this->object), $this->methodName);
     }
     $params = $this->reflection->getParameters();
     if (empty($params)) {
         $eventName = 'N/A';
     } else {
         $eventName = $this->getParamType($params[0]);
     }
     return array_merge(parent::__debugInfo(), ['event' => $eventName, 'listener' => [get_class($this->object), $this->methodName]]);
 }
 public function __construct($finder, $filter)
 {
     parent::__construct($finder, $filter, 'js');
 }