New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resources::$placeFormatExtensionBeforeDynamicParts not obeyed. #493
Comments
tallsam
changed the title
Explorer::$placeFormatExtensionBeforeDynamicParts not obeyed.
Resources::$placeFormatExtensionBeforeDynamicParts not obeyed.
Oct 15, 2015
My solution was to add a check for } else {
for ($i = 0; $i < count($parts); $i++) {
if (strlen($parts[$i]) && $parts[$i]{0} == '{' && !static::$placeFormatExtensionBeforeDynamicParts) {
$pos = $i - 1;
break;
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Arul,
I'm on RC6.
I've set
Resources::$placeFormatExtensionBeforeDynamicParts = false;
in my index.phpAlso tried
Explorer::$placeFormatExtensionBeforeDynamicParts = false;
My GET endpoint is showing in Explorer as
/v1/weatherstations/nearby.json/{latitude}/{longitude}/{radius}
.I would like it to be
/v1/weatherstations/nearby/{latitude}/{longitude}/{radius}.json
Is this possible?
I can get this behaviour by commenting out Resources.php:275-283 but I'm not sure if this has further implications.
Cheers,
Sam.
The text was updated successfully, but these errors were encountered: