You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used a vendor API (=Mailchimp) which had it's own Exception naming conventions.
I want to change how Mailchimp_List_AlreadySubscribed (exception) is rendered and I used a custom exception handler.
namespaceApp\Error;
useCake\Error\ExceptionRenderer;
classAppExceptionRendererextendsExceptionRenderer
{
publicfunctionmailchimpListAlreadySubscribed($error)
{
return'Oops the user is already subscribed to the list !';
}
}
Never called.
When I saw how CakePHP gets the method name, I understand why it doesn't works...
I used a vendor API (=Mailchimp) which had it's own Exception naming conventions.
I want to change how Mailchimp_List_AlreadySubscribed (exception) is rendered and I used a custom exception handler.
Never called.
When I saw how CakePHP gets the method name, I understand why it doesn't works...
cakephp/src/Error/ExceptionRenderer.php
Line 201 in e236933
It searches for
mailchimpListAlreadyS()
method instead of the complete name because ofsubstr()
.What do you think about this ?
I have already made a change to it but I don't know if it's a good approach.
The text was updated successfully, but these errors were encountered: