mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 18:12:15 +00:00
+4
-1
@@ -2,11 +2,14 @@
|
|||||||
"name": "pecee/simple-router",
|
"name": "pecee/simple-router",
|
||||||
"description": "Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.",
|
"description": "Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
"router",
|
||||||
"router",
|
"router",
|
||||||
"routing",
|
"routing",
|
||||||
|
"route",
|
||||||
|
"simple-php-router",
|
||||||
"laravel",
|
"laravel",
|
||||||
"pecee",
|
"pecee",
|
||||||
"route"
|
"php"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"support": {
|
"support": {
|
||||||
|
|||||||
@@ -283,15 +283,7 @@ class Input
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = array_merge($_GET, $output);
|
return ($filter !== null) ? array_intersect_key($output, array_flip($filter)) : array_merge($_GET, $output);
|
||||||
|
|
||||||
if ($filter !== null) {
|
|
||||||
$output = array_filter($output, function ($key) use ($filter) {
|
|
||||||
return (in_array($key, $filter) === true);
|
|
||||||
}, ARRAY_FILTER_USE_KEY);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $output;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user