FriendsOfSymfony / FOSJsRoutingBundle

A pretty nice way to expose your Symfony routing to client applications.
1.48k stars 261 forks source link

Bug?: Does not pick up router.request-context paramaters for dev-environment #393

Closed lambertbeekhuis closed 4 years ago

lambertbeekhuis commented 4 years ago

Hi,

Since I update from Sf4.2 to Sf5.1, and updated the bundle to version 2.6.0, the dumped routes do not handle the router.request_context.host parameter as specified in services_dev.yml correctly anymore.

In .env my APP_ENV=dev, so the DumpCommand should take the dev-environment, and so the parameters as specified in services_dev.yaml

However, is does take the router.request_context.host parameter as set in services.yml, but does not take the overriden value in services_dev.yml.

lambertbeekhuis commented 4 years ago

Fixed: I used the filename services_dev.yml instead of services_dev.yaml . Changing to .yaml fixed this issue for me. Tricky!