Fruit RouteKit
Route kit of Fruit Framework
|
Static Public Member Functions | |
static | typeConvert (array $params, array $pRefs) |
|
static |
Convert type of parameters according to type hinting.
It is recommanded to add type hinting to everything you wrote, including your handlers. But url parameters are strings, so it needs to be converted.
This method can only convert parameters to primitive types, so it's meaningless with php5 and hhvm. We will skip this process if you are not using php7.