1 | <?php |
||
12 | abstract class AbstractLogFactory extends AbstractFactory |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * {@inheritDoc} |
||
17 | */ |
||
18 | 30 | protected function create(ContainerInterface $container, $config) |
|
23 | |||
24 | /** |
||
25 | * {@inheritDoc} |
||
26 | */ |
||
27 | 8 | public function getServiceType() |
|
31 | |||
32 | /** |
||
33 | * @param ContainerInterface $container |
||
34 | * @param string $logName |
||
35 | * @return LoggerInterface |
||
36 | * @throws ServiceNotCreatedException |
||
37 | */ |
||
38 | 30 | private function getLoggerOrThrowException(ContainerInterface $container, $logName) |
|
47 | |||
48 | /** |
||
49 | * Key in log configuration |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | abstract protected function getKey(); |
||
54 | } |
||
55 |