1 | <?php |
||
35 | class WrapperHandlerFactory implements HandlerFactoryInterface |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * The wrapped handler factory. |
||
40 | * |
||
41 | * @var \TechDivision\Import\Loggers\HandlerFactoryInterface |
||
42 | */ |
||
43 | protected $handlerFactory; |
||
44 | |||
45 | /** |
||
46 | * Initialize the processor with the handler factory instance that has to be wrapped |
||
47 | * |
||
48 | * @param \TechDivision\Import\Loggers\HandlerFactoryInterface $handlerFactory The handler factory we want to wrap |
||
49 | */ |
||
50 | public function __construct(HandlerFactoryInterface $handlerFactory) |
||
54 | |||
55 | /** |
||
56 | * Return's the wrapped handler factory. |
||
57 | * |
||
58 | * @return \TechDivision\Import\Loggers\HandlerFactoryInterface The wrapped handler factory |
||
59 | */ |
||
60 | protected function getHandlerFactory() |
||
64 | |||
65 | /** |
||
66 | * Creates a new formatter instance based on the passed configuration. |
||
67 | * |
||
68 | * @param \TechDivision\Import\Configuration\Logger\HandlerConfigurationInterface $handlerConfiguration The handler configuration |
||
69 | * |
||
70 | * @return \Monolog\Handler\HandlerInterface The handler instance |
||
71 | */ |
||
72 | public function factory(HandlerConfigurationInterface $handlerConfiguration) |
||
79 | } |
||
80 |