The docs/README.md should include instructions on how to use this library with zend-expressive V3. The example given in README.md does no longer work and will trigger an error.
This can be resolved by using the doublePassMiddleware function:
use LosMiddleware\BasePath\BasePath;
use Zend\Diactoros\Response;
/** @var \Zend\Expressive\Application $app */
$app->pipe(\Zend\Stratigility\doublePassMiddleware(new BasePath(), new Response()));
The docs/README.md should include instructions on how to use this library with zend-expressive V3. The example given in README.md does no longer work and will trigger an error.
This can be resolved by using the
doublePassMiddleware
function: