Closed calinpristavu closed 1 year ago
Unfortunately nor the event name neither the template are available as constants somewhere. They are both defined under: https://github.com/Sylius/Sylius/blob/025df951b52a1076f452c4527076a954af72957f/src/Sylius/Bundle/ShopBundle/Resources/config/app/config.yml#L633
:cry:
In https://github.com/Adriana-Daniela/sylius-user-impersonator-plugin/blob/master/src/ContextProvider/UserImpersonatorHintContextProvider.php#LL44C16-L44C45 we hard code the template event name. Can we find it as a constant somewhere and use that?
same for the template name(but I doubt there is a constant for that)