There are currently 2 options we can use. There can be a TemplateNotFoundException or a exist method on the TemplateRendererInterface. As feedback from @fabpot here: php-fig/fig-standards#1280 (comment):
Having to catch an exception for non-existing templates was a performance issue in Twig as we have a feature that let you fall back to other templates. So we added a way to check if a template exists that returns a Boolean.
So the exception isn't ideal and a exist method is better. We need to check which
There are currently 2 options we can use. There can be a TemplateNotFoundException or a exist method on the
TemplateRendererInterface. As feedback from@fabpothere: php-fig/fig-standards#1280 (comment):So the exception isn't ideal and a
existmethod is better. We need to check which