Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/storage/PhortuneAccount.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); | ||||
$editor->applyTransactions($account, $xactions); | $editor->applyTransactions($account, $xactions); | ||||
unset($unguarded); | unset($unguarded); | ||||
return $account; | return $account; | ||||
} | } | ||||
public function newCart(PhabricatorUser $actor) { | public function newCart( | ||||
return PhortuneCart::initializeNewCart($actor, $this) | PhabricatorUser $actor, | ||||
->save(); | PhortuneCartImplementation $implementation) { | ||||
$cart = PhortuneCart::initializeNewCart($actor, $this); | |||||
$cart->setCartClass(get_class($implementation)); | |||||
$cart->attachImplementation($implementation); | |||||
$implementation->willCreateCart($actor, $cart); | |||||
return $cart->save(); | |||||
} | } | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'name' => 'text255', | 'name' => 'text255', | ||||
), | ), | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |