1 | <?php |
||
11 | class ExceptionManager |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $defaultConfig; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $exceptions; |
||
22 | |||
23 | /** |
||
24 | * Constructor. |
||
25 | * |
||
26 | * @param array $defaultConfig |
||
27 | * @param array $exceptions |
||
28 | */ |
||
29 | public function __construct(array $defaultConfig, array $exceptions) |
||
34 | |||
35 | /** |
||
36 | * Configure Exception |
||
37 | * |
||
38 | * @param ExceptionInterface $exception |
||
39 | * |
||
40 | * @return ExceptionInterface |
||
41 | */ |
||
42 | public function configure(ExceptionInterface $exception) |
||
58 | |||
59 | /** |
||
60 | * Get config to exception |
||
61 | * |
||
62 | * @param string $exceptionName |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | protected function getConfigException($exceptionName) |
||
85 | } |
||
86 |