setSolver() public method

IllegalCallException is thrown if given $handler cannot be resolved.
public setSolver ( string $exception, Kraken\Supervision\SolverInterface | string | string[] $handler )
$exception string
$handler Kraken\Supervision\SolverInterface | string | string[]
コード例 #1
0
 /**
  * @param SupervisorInterface $supervisor
  * @param SolverInterface[]|string[]|string[][] $handlers
  */
 private function setSolvers(SupervisorInterface $supervisor, $handlers)
 {
     foreach ($handlers as $exception => $handler) {
         $supervisor->setSolver($exception, $handler);
     }
 }