public function notify(ProcessInterface $process, ProcessInterface $sender) { // If process hasn't already been notified, do it now if (!in_array($process->getName(), $this->notifiedProcesses)) { $this->notifiedProcesses[] = $process->getName(); $process->emit(ProcessInterface::EVENT_ERROR, array($sender)); } }