| 1 | <?php |
||
| 8 | abstract class ExceptionHandlerProvider implements DefinitionProviderInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $formatters; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $handlers; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param array $handlers |
||
| 22 | * @param array $formatters |
||
| 23 | */ |
||
| 24 | 8 | public function __construct(array $handlers = [], array $formatters = []) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Returns the definition to register in the container. |
||
| 32 | * |
||
| 33 | * Definitions must be indexed by their entry ID. For example: |
||
| 34 | * |
||
| 35 | * return [ |
||
| 36 | * 'logger' => ... |
||
| 37 | * 'mailer' => ... |
||
| 38 | * ]; |
||
| 39 | * |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | 2 | public function getDefinitions() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @return Runner |
||
| 55 | */ |
||
| 56 | abstract public function getRunner() : Runner; |
||
| 57 | } |
||
| 58 |