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());
There is an error in the documentation in the PSR-11 section.
instead
in Zend Expressive 3 should by