Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function signal(int $signo, callable $callback) : SignalInterface
 {
     // @codeCoverageIgnoreStart
     if (null === $this->signalManager) {
         throw new SignalHandlingDisabledError('The pcntl extension must be installed for signal constants to be defined.');
     }
     // @codeCoverageIgnoreEnd
     return $this->signalManager->create($signo, $callback);
 }