@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove unused Phortune exceptions

Summary: These classes are no longer used after D10649.

Test Plan: `grep`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11168

-41
-4
src/__phutil_library_map__.php
··· 2740 2740 'PhortuneMerchantTransactionQuery' => 'applications/phortune/query/PhortuneMerchantTransactionQuery.php', 2741 2741 'PhortuneMerchantViewController' => 'applications/phortune/controller/PhortuneMerchantViewController.php', 2742 2742 'PhortuneMonthYearExpiryControl' => 'applications/phortune/control/PhortuneMonthYearExpiryControl.php', 2743 - 'PhortuneMultiplePaymentProvidersException' => 'applications/phortune/exception/PhortuneMultiplePaymentProvidersException.php', 2744 - 'PhortuneNoPaymentProviderException' => 'applications/phortune/exception/PhortuneNoPaymentProviderException.php', 2745 2743 'PhortuneNotImplementedException' => 'applications/phortune/exception/PhortuneNotImplementedException.php', 2746 2744 'PhortuneOrderTableView' => 'applications/phortune/view/PhortuneOrderTableView.php', 2747 2745 'PhortunePayPalPaymentProvider' => 'applications/phortune/provider/PhortunePayPalPaymentProvider.php', ··· 6028 6026 'PhortuneMerchantTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 6029 6027 'PhortuneMerchantViewController' => 'PhortuneMerchantController', 6030 6028 'PhortuneMonthYearExpiryControl' => 'AphrontFormControl', 6031 - 'PhortuneMultiplePaymentProvidersException' => 'Exception', 6032 - 'PhortuneNoPaymentProviderException' => 'Exception', 6033 6029 'PhortuneNotImplementedException' => 'Exception', 6034 6030 'PhortuneOrderTableView' => 'AphrontView', 6035 6031 'PhortunePayPalPaymentProvider' => 'PhortunePaymentProvider',
-23
src/applications/phortune/exception/PhortuneMultiplePaymentProvidersException.php
··· 1 - <?php 2 - 3 - final class PhortuneMultiplePaymentProvidersException extends Exception { 4 - 5 - public function __construct(PhortunePaymentMethod $method, array $providers) { 6 - assert_instances_of($providers, 'PhortunePaymentProvider'); 7 - $type = $method->getMetadataValue('type'); 8 - 9 - $provider_names = array(); 10 - foreach ($providers as $provider) { 11 - $provider_names[] = get_class($provider); 12 - } 13 - 14 - return parent::__construct( 15 - "More than one payment provider can handle charging payments for this ". 16 - "payment method. This is ambiguous and likely indicates that a payment ". 17 - "provider is not properly implemented. You may be able to use a ". 18 - "different payment method to complete this transaction. The payment ". 19 - "method type is '{$type}'. The providers claiming to handle it are: ". 20 - implode(', ', $provider_names).'.'); 21 - } 22 - 23 - }
-14
src/applications/phortune/exception/PhortuneNoPaymentProviderException.php
··· 1 - <?php 2 - 3 - final class PhortuneNoPaymentProviderException extends Exception { 4 - 5 - public function __construct(PhortunePaymentMethod $method) { 6 - $type = $method->getMetadataValue('type'); 7 - 8 - return parent::__construct( 9 - "No available payment provider can handle charging payments for this ". 10 - "payment method. You may be able to use a different payment method to ". 11 - "complete this transaction. The payment method type is '{$type}'."); 12 - } 13 - 14 - }