Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Right now we're using simple class names, i.e. Order or Terminal. What if another module defines classes with the same names?
Fatal error: Cannot redeclare class Order
Solution:
Use class names in module namespace, i.e. CommerceNetsOrder
Comment | File | Size | Author |
---|---|---|---|
#3 | use_module_namespace-2735033-3.patch | 12.93 KB | zaporylie |
Comments
Comment #2
zaporyliePatch fixes class names. Arguments has been reformatted to follow Drupal coding standards (camel_case).
Comment #3
zaporylieOther small coding standard issues have been resolved.
In my opinion it is ready to go now.
Comment #4
farald CreditAttribution: farald commentedNice cleanup. Yes, this is ready to go.
Comment #6
zaporylieCommitted and pushed to 7.x-3.x.