mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 04:51:13 +01:00
Validate all attributes
This commit is contained in:
parent
6dc03776ee
commit
d2c68b6372
@ -176,6 +176,9 @@ abstract class EventHandler extends AbstractAPI
|
||||
if (!$this instanceof SimpleEventHandler) {
|
||||
continue;
|
||||
}
|
||||
|
||||
array_map(fn (ReflectionAttribute $attribute) => $attribute->newInstance(), $methodRefl->getAttributes());
|
||||
|
||||
if ($periodic = $methodRefl->getAttributes(Cron::class)) {
|
||||
$periodic = $periodic[0]->newInstance();
|
||||
$this->periodicLoops[$method] = new PeriodicLoop(
|
||||
|
Loading…
x
Reference in New Issue
Block a user