|
@@ 116-124 (lines=9) @@
|
| 113 |
|
* @throws ConfigNoCircleAvailableException |
| 114 |
|
* @throws GlobalScaleDSyncException |
| 115 |
|
*/ |
| 116 |
|
public function requestedEvent(GSEvent $event) { |
| 117 |
|
$this->globalScaleService->checkEvent($event); |
| 118 |
|
|
| 119 |
|
$gs = $this->globalScaleService->getGlobalScaleEvent($event); |
| 120 |
|
$gs->verify($event, true); |
| 121 |
|
$gs->manage($event); |
| 122 |
|
|
| 123 |
|
$this->globalScaleService->asyncBroadcast($event); |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
|
| 127 |
|
/** |
|
@@ 136-142 (lines=7) @@
|
| 133 |
|
* @throws GlobalScaleDSyncException |
| 134 |
|
* @throws GlobalScaleEventException |
| 135 |
|
*/ |
| 136 |
|
public function statusEvent(GSEvent $event) { |
| 137 |
|
$this->globalScaleService->checkEvent($event); |
| 138 |
|
|
| 139 |
|
$gs = $this->globalScaleService->getGlobalScaleEvent($event); |
| 140 |
|
$gs->verify($event, false); |
| 141 |
|
$gs->manage($event); |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
|
| 145 |
|
/** |
|
@@ 148-157 (lines=10) @@
|
| 145 |
|
/** |
| 146 |
|
* @param GSEvent $event |
| 147 |
|
*/ |
| 148 |
|
public function onNewEvent(GSEvent $event) { |
| 149 |
|
try { |
| 150 |
|
$this->globalScaleService->checkEvent($event); |
| 151 |
|
|
| 152 |
|
$gs = $this->globalScaleService->getGlobalScaleEvent($event); |
| 153 |
|
$gs->manage($event); |
| 154 |
|
} catch (Exception $e) { |
| 155 |
|
$this->miscService->log('issue onNewEvent - ' . $e->getMessage()); |
| 156 |
|
} |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
} |
| 160 |
|
|