plugins/Field/src/Model/Entity/FieldInstance.php 1 location
|
@@ 45-51 (lines=7) @@
|
42 |
|
protected function _getHandlerName() |
43 |
|
{ |
44 |
|
$handler = $this->get('handler'); |
45 |
|
if (class_exists($handler)) { |
46 |
|
$handler = new $handler(); |
47 |
|
$info = $handler->info(); |
48 |
|
if (!empty($info['name'])) { |
49 |
|
return $info['name']; |
50 |
|
} |
51 |
|
} |
52 |
|
|
53 |
|
return $this->get('handler'); |
54 |
|
} |
plugins/User/src/Notification/NotificationManager.php 1 location
|
@@ 103-106 (lines=4) @@
|
100 |
|
$handler = "\\{$handler}"; |
101 |
|
} |
102 |
|
|
103 |
|
if (class_exists($handler)) { |
104 |
|
$config = !empty($arguments[1]) ? (array)$arguments[1] : []; |
105 |
|
$handler = new $handler($arguments[0], $config); |
106 |
|
} |
107 |
|
} |
108 |
|
|
109 |
|
if ($handler instanceof BaseMessage) { |