Routing _defaults from yaml configuration overrides format from Route attribute #60309
-
We're trying to configure our application to use Configuration ( controllers:
resource:
path: ../src/Controller/
namespace: App\Controller
type: attribute
defaults:
_format: json Route attribute: #[Route('/metrics', format: 'txt')]
public function metrics(): Response {
return new Response(content: '# HELP');
} When calling this route, the response contains the header |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It is documented as such but doesnβt really make sense to me so I opened #60343. |
Beta Was this translation helpful? Give feedback.
It is documented as such but doesnβt really make sense to me so I opened #60343.