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);
        }
    }
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);
        }
    }
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 ) ; } }
Process callbacks for a given event
@param string $eventName
@param File   $file
@return void
Process callbacks for a given event