mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
Development
- It's now possible to adjust the load-order for parameters on routes. - Replaced PHP 7.1 deprecated `mcrypt_create_iv` function with `random_bytes` if it is available (requires > PHP7) - Added `setIndex`, `setName` and `setValue` methods to `IInputItem` to allow for extendability. - Cleanup and bug fixes.
This commit is contained in:
@@ -384,7 +384,10 @@ abstract class Route implements IRoute
|
||||
}
|
||||
|
||||
if (count($this->parameters) > 0) {
|
||||
$values['parameters'] = $this->parameters;
|
||||
/* Ensure the right order + values */
|
||||
$parameters = ($values['parameters'] + $this->parameters);
|
||||
$parameters = array_merge($parameters, $this->parameters);
|
||||
$this->setParameters($parameters);
|
||||
}
|
||||
|
||||
if (count($this->middlewares) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user