php-middleware / phpdebugbar

PSR-15 middleware for PHP Debug bar
MIT License
74 stars 18 forks source link

Error in README.md in PSR-11 section #28

Closed tilaj closed 5 years ago

tilaj commented 5 years ago

There is an error in the documentation in the PSR-11 section.

instead

$container[Psr\Http\Message\ResponseInterface::class] = new Zend\Diactoros\ResponseFactory();
$container[Psr\Http\Message\StreamFactoryInterface] = new Zend\Diactoros\StreamFactory();

in Zend Expressive 3 should by

$container->setService(\Psr\Http\Message\ResponseFactoryInterface::class, new \Zend\Diactoros\ResponseFactory());
$container->setService(\Psr\Http\Message\StreamFactoryInterface::class, new \Zend\Diactoros\StreamFactory());
snapshotpl commented 5 years ago

Example for zend-diactoros implementation and Pimple:

This library is not forced connected with expressive or any container, so you should configure it by your self