Skip to content

Commit 20d13f7

Browse files
committed
update github pages
1 parent 7688790 commit 20d13f7

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

docs/README.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff 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-
````

0 commit comments

Comments
 (0)