I would like to create my add-on which would upgrade a user when he do something.
But I don't get how to use this :
public function upgradeUser($userId, array $upgrade, $allowInsertUnpurchasable = false, $endDate = null)
- array $upgrade
- $endDate (I want upgrade to last forever)
I don't get the use of this upgrade array.