src/Handler/GroupHandlerFactory.php 1 location
|
@@ 16-25 (lines=10) @@
|
| 13 |
|
{ |
| 14 |
|
use HandlerManagerTrait; |
| 15 |
|
|
| 16 |
|
public function __invoke(array $options) |
| 17 |
|
{ |
| 18 |
|
$handlers = $this->getHandlers($options); |
| 19 |
|
$bubble = (boolean) ($options['bubble'] ?? true); |
| 20 |
|
|
| 21 |
|
return new GroupHandler( |
| 22 |
|
$handlers, |
| 23 |
|
$bubble |
| 24 |
|
); |
| 25 |
|
} |
| 26 |
|
|
| 27 |
|
protected function getHandlers($options) |
| 28 |
|
{ |
src/Handler/WhatFailureGroupHandlerFactory.php 1 location
|
@@ 10-19 (lines=10) @@
|
| 7 |
|
|
| 8 |
|
class WhatFailureGroupHandlerFactory extends GroupHandlerFactory |
| 9 |
|
{ |
| 10 |
|
public function __invoke(array $options) |
| 11 |
|
{ |
| 12 |
|
$handlers = $this->getHandlers($options); |
| 13 |
|
$bubble = (boolean) ($options['bubble'] ?? true); |
| 14 |
|
|
| 15 |
|
return new WhatFailureGroupHandler( |
| 16 |
|
$handlers, |
| 17 |
|
$bubble |
| 18 |
|
); |
| 19 |
|
} |
| 20 |
|
} |
| 21 |
|
|