The AjaxAddToCartForm class is not compatible with the latest Commerce Core releases.
Needs review
2.0
Code
Fixed the class to use proper dependency instantiation.