1

With the release of Magento 2.1 some of the MangerInterface methods were marked deprecated.

addError($message, $group = null);
addWarning($message, $group = null);
addNotice($message, $group = null);
addSuccess($message, $group = null);
addException(\Exception $exception, $alternativeText, $group = null);

I was wondering what alternatives for these methods should be used ?

1 Answer 1

2

You can use:

  • addErrorMessage
  • addWarningMessage
  • addNoticeMessage
  • addSuccessMessage
  • addExceptionMessage

It says so right there in the interface, right under the @deprecated markup

1
  • Oops silly me :P !! Commented Sep 9, 2016 at 14:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.