src/Aggregator/AggregateEventsRaiseInSelfTrait.php 1 location
|
@@ 47-55 (lines=9) @@
|
44 |
|
/** |
45 |
|
* @param EventInterface $event |
46 |
|
*/ |
47 |
|
private function raiseInSelf(EventInterface $event) |
48 |
|
{ |
49 |
|
$method = $this->getMethodNameFromEvent($event); |
50 |
|
|
51 |
|
// if method is not exists is not a critical error |
52 |
|
if (method_exists($this, $method)) { |
53 |
|
call_user_func([$this, $method], $event); |
54 |
|
} |
55 |
|
} |
56 |
|
|
57 |
|
/** |
58 |
|
* @param EventInterface $event |
src/Listener/SwitchListenerTrait.php 1 location
|
@@ 20-28 (lines=9) @@
|
17 |
|
/** |
18 |
|
* @param EventInterface $event |
19 |
|
*/ |
20 |
|
public function handle(EventInterface $event) |
21 |
|
{ |
22 |
|
$method = $this->getMethodNameFromEvent($event); |
23 |
|
|
24 |
|
// if method is not exists is not a critical error |
25 |
|
if (method_exists($this, $method)) { |
26 |
|
call_user_func([$this, $method], $event); |
27 |
|
} |
28 |
|
} |
29 |
|
|
30 |
|
/** |
31 |
|
* Get handler method name from event. |