Twig icon indicating copy to clipboard operation
Twig copied to clipboard

fix function is already exist

Open jimmydupre opened this issue 1 year ago • 2 comments

added function_exists on multiple files because if twig is stocked in include_path on php config and another place. We risk a conflict. Thank you

jimmydupre avatar Oct 17 '24 14:10 jimmydupre

If these functions already exist, I suppose that this should be fixed instead of hiding the problem by checking for existence (which would not guarantee that the implementation is the same).

fabpot avatar Oct 18 '24 08:10 fabpot

In my case, twig is incorporated into the include_path for general use. This is an unusual usage. However, in the virtualhost of the main domain there is a subproject (CMS) that uses twig. This causes a conflict because the functions are already declared.

jimmydupre avatar Oct 18 '24 08:10 jimmydupre

I understand your (unusual) setup. But this is not something that we will support for the reason explained above.

fabpot avatar Oct 26 '24 05:10 fabpot