[REF] Duplicate possibly-used parts of createProfileContact onto Parser_Contact
authoreileen <emcnaughton@wikimedia.org>
Thu, 3 Dec 2020 20:42:51 +0000 (09:42 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 3 Dec 2020 23:28:38 +0000 (12:28 +1300)
commit29f811deb6c2645cdb3dbdf7b621603de2ec04e0
tree8f8307e1691f73402efa89b1a9f9ecd39fdb17a1
parentfb199459f5974ecf0815a7fc3abf5cd82167df73
[REF] Duplicate possibly-used parts of createProfileContact onto Parser_Contact

The parser_Contact class should call the api. Getting to that point is
complicated because
1) it's such a mess and
2) it does a lot of work to prepare to call createProfileContact
and it's hard to unravel that.

By copying most of createProfileContact onto the class we can start to
unravel it & pare down to calling the api (note we went through
this process in the dedupe class, at least in part).

I'm pretty sure the hooks reflect 'the way the code grew up' rather than
any logical use/ requirement for the profile hook
CRM/Contact/Import/Parser/Contact.php