Error in README.md in PSR-11 section
Closed this issue · 1 comments
tilaj commented
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
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