sulu / SuluArticleBundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
MIT License
52 stars 77 forks source link

Throw `NotAcceptableHttpException` if template request format does not exists #679

Closed FlorianKoerner closed 6 days ago

FlorianKoerner commented 3 weeks ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

What's in this PR?

A request format for which the template is not available throws a Twig\Error\LoaderError. An HttpException would be better.

See also:

alexander-schranz commented 2 weeks ago

This make sense. Can you rebase to check if that fixes the PHP Lint errors?

alexander-schranz commented 6 days ago

@FlorianKoerner Thank you!