protected processCallbacksFor ( string $eventName, FileUpload\File $file ) : void | ||
$eventName | string | |
$file | FileUpload\File | |
Résultat | void |
protected function processCallbacksFor($eventName, File $file)
{
if (!array_key_exists($eventName, $this->callbacks) || empty($this->callbacks[$eventName])) {
return;
}
foreach ($this->callbacks[$eventName] as $callback) {
$callback($file);
}
}