core icon indicating copy to clipboard operation
core copied to clipboard

Middleware backward compatible implementation

Open aleferri opened this issue 4 years ago • 1 comments

  • Removed $pass property on net\Route
  • Removed $pass parameter on net\Router::map
  • Added $config property on net\Route
  • Added $config parameter on net\Router::map
  • Made dispatchRoute replaceable by the user
  • Added optional Middleware Routing Handler (LayersStack and LayersIterator), in the end the router call the original _dispatchRoute
  • In Flight::start check $config['pass_route'] instead of $pass (now it doesn't exists anymore)
  • All tests updated to PHPUnit 7
  • Bumped required php version from 5.2 to 5.6
  • Bumped required phpunit version from 4.8 to 7
  • Updated the readme.md to show how to use the new Middleware enabled implementation of routing

aleferri avatar Apr 29 '20 13:04 aleferri

I don't really see a reason for this PR, can you clarify why this PR should be merged?

Conver avatar Jun 14 '20 02:06 Conver

If this is still an issue you'd like to address, go ahead an open up an issue so it can be discussed further.

n0nag0n avatar Jan 02 '24 23:01 n0nag0n