File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ $app->pipe(\Antidot\Logger\Application\Http\Middleware\RequestLoggerMiddleware::
2828
2929[ Zend Config Aggregator] ( https://framework.zend.com/blog/2017-04-20-config-aggregator.html ) installs the library automatically
3030
31- To use both middlewares in Zend Expressive you need to create factory classes
31+ To use both middlewares in Zend Expressive you need to create factory classes, and at least a LoggerInterface implementation.
3232
3333```` php
3434<?php
@@ -67,23 +67,3 @@ class RequestLoggerMiddlewareFactory
6767}
6868
6969````
70-
71- ### Using factory:
72-
73- #### Config
74-
75- See [ wshafer/psr11-monolog] ( https://github.com/wshafer/psr11-monolog ) for complete config reference, it allows using some different handlers
76-
77- #### factory
78-
79- ```` php
80- <?php
81-
82- use Antidot\Logger\Container\MonologFactory;
83- use Psr\Log\LoggerInterface;
84-
85- $factory = new MonologFactory();
86-
87- $logger = $factory->__invoke($container);
88- $container->set(LoggerInterface::class, $logger);
89- ````
You can’t perform that action at this time.
0 commit comments