@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Psr\Container\ContainerInterface; |
| 6 | 6 | use WShafer\PSR11MonoLog\Config\MainConfig; |
| 7 | -use WShafer\PSR11MonoLog\Config\MainConfigFactory; |
|
| 8 | 7 | use WShafer\PSR11MonoLog\Formatter\FormatterMapper; |
| 9 | 8 | use WShafer\PSR11MonoLog\Handler\HandlerMapper; |
| 10 | 9 | use WShafer\PSR11MonoLog\Processor\ProcessorMapper; |
@@ -36,6 +36,10 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | abstract protected function getServiceConfig($id) : ConfigInterface; |
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * @param string $id |
|
| 42 | + */ |
|
| 39 | 43 | abstract protected function hasServiceConfig($id) : bool; |
| 40 | 44 | |
| 41 | 45 | public function get($id) |
@@ -74,6 +78,9 @@ discard block |
||
| 74 | 78 | return $this->hasServiceConfig($id); |
| 75 | 79 | } |
| 76 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $id |
|
| 83 | + */ |
|
| 77 | 84 | protected function getInstanceFromFactory($id) |
| 78 | 85 | { |
| 79 | 86 | $class = null; |