In the above example, the path /api/books would result in a lower layer receiving /api/v1/books. This worked on versions prior to 2.1, but not in 2.2 or 3.0.
The patch provided here is a backport of the one in #165, and re-worked to work with PHP 5.6 and 7.0.
This patch backports the fix from #165 to the 2.2 series, as the but exists in that version as well.
Essentially, previous versions allowed something like the following:
In the above example, the path
/api/books
would result in a lower layer receiving/api/v1/books
. This worked on versions prior to 2.1, but not in 2.2 or 3.0.The patch provided here is a backport of the one in #165, and re-worked to work with PHP 5.6 and 7.0.