src/php/DataSift/Storyplayer/Cli/BuildTestEnvironment/Command.php 1 location
|
@@ 263-271 (lines=9) @@
|
| 260 |
|
* @param Injectables $injectables |
| 261 |
|
* @return void |
| 262 |
|
*/ |
| 263 |
|
protected function initSignalHandling(Injectables $injectables) |
| 264 |
|
{ |
| 265 |
|
// we need to remember the injectables, for when we handle CTRL+C |
| 266 |
|
$this->injectables = $injectables; |
| 267 |
|
|
| 268 |
|
// setup signal handling |
| 269 |
|
pcntl_signal(SIGTERM, array($this, 'sigtermHandler')); |
| 270 |
|
pcntl_signal(SIGINT , array($this, 'sigtermHandler')); |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
/** |
| 274 |
|
* |
src/php/DataSift/Storyplayer/Cli/Script/Command.php 1 location
|
@@ 227-235 (lines=9) @@
|
| 224 |
|
* @param Injectables $injectables |
| 225 |
|
* @return void |
| 226 |
|
*/ |
| 227 |
|
protected function initSignalHandling(Injectables $injectables) |
| 228 |
|
{ |
| 229 |
|
// we need to remember the injectables, for when we handle CTRL+C |
| 230 |
|
$this->injectables = $injectables; |
| 231 |
|
|
| 232 |
|
// setup signal handling |
| 233 |
|
pcntl_signal(SIGTERM, array($this, 'sigtermHandler')); |
| 234 |
|
pcntl_signal(SIGINT , array($this, 'sigtermHandler')); |
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
/** |
| 238 |
|
* |
src/php/DataSift/Storyplayer/Cli/PlayStory/Command.php 1 location
|
@@ 339-347 (lines=9) @@
|
| 336 |
|
* @param Injectables $injectables |
| 337 |
|
* @return void |
| 338 |
|
*/ |
| 339 |
|
protected function initSignalHandling(Injectables $injectables) |
| 340 |
|
{ |
| 341 |
|
// we need to remember the injectables, for when we handle CTRL+C |
| 342 |
|
$this->injectables = $injectables; |
| 343 |
|
|
| 344 |
|
// setup signal handling |
| 345 |
|
pcntl_signal(SIGTERM, array($this, 'sigtermHandler')); |
| 346 |
|
pcntl_signal(SIGINT , array($this, 'sigtermHandler')); |
| 347 |
|
} |
| 348 |
|
|
| 349 |
|
/** |
| 350 |
|
* |