When building an API, there is no need for Twig. It may be needed in the dev environment because of the profiler but in production, even though the profiler extension is not loaded, Pomm still requires the twig service to be present & configured.
When no twig configuration is set, Symfony throws the following exception
Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException:
The service "pomm.twig_extension" has a dependency on a non-existent service "twig.loader".
When building an API, there is no need for Twig. It may be needed in the dev environment because of the profiler but in production, even though the profiler extension is not loaded, Pomm still requires the twig service to be present & configured.
When no twig configuration is set, Symfony throws the following exception