Added ability to use an object in MODx.add
Added ability to use an object in MODx.add

* origin/pr/11376:
  Added ability to use an object in MODx.add