1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 11:34:41 +01:00

Add getEventHandler in combinedAPI

This commit is contained in:
Daniil Gentili 2019-07-24 20:31:46 +02:00
parent 9bf529b483
commit b38366dd55

View File

@ -164,7 +164,10 @@ class CombinedAPI
public $event_handler;
private $event_handler_instance;
private $event_handler_methods = [];
public function getEventHandler()
{
return $this->event_handler_instance;
}
public function setEventHandler($event_handler)
{
if (!class_exists($event_handler) || !is_subclass_of($event_handler, '\danog\MadelineProto\CombinedEventHandler')) {