mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-31 00:48:21 +01:00
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
This commit is contained in:
parent
94f438f6a6
commit
cdf11c9fd1
3 changed files with 0 additions and 41 deletions
|
@ -2740,8 +2740,6 @@ phutil_register_library_map(array(
|
|||
'PhortuneMerchantTransactionQuery' => 'applications/phortune/query/PhortuneMerchantTransactionQuery.php',
|
||||
'PhortuneMerchantViewController' => 'applications/phortune/controller/PhortuneMerchantViewController.php',
|
||||
'PhortuneMonthYearExpiryControl' => 'applications/phortune/control/PhortuneMonthYearExpiryControl.php',
|
||||
'PhortuneMultiplePaymentProvidersException' => 'applications/phortune/exception/PhortuneMultiplePaymentProvidersException.php',
|
||||
'PhortuneNoPaymentProviderException' => 'applications/phortune/exception/PhortuneNoPaymentProviderException.php',
|
||||
'PhortuneNotImplementedException' => 'applications/phortune/exception/PhortuneNotImplementedException.php',
|
||||
'PhortuneOrderTableView' => 'applications/phortune/view/PhortuneOrderTableView.php',
|
||||
'PhortunePayPalPaymentProvider' => 'applications/phortune/provider/PhortunePayPalPaymentProvider.php',
|
||||
|
@ -6028,8 +6026,6 @@ phutil_register_library_map(array(
|
|||
'PhortuneMerchantTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
|
||||
'PhortuneMerchantViewController' => 'PhortuneMerchantController',
|
||||
'PhortuneMonthYearExpiryControl' => 'AphrontFormControl',
|
||||
'PhortuneMultiplePaymentProvidersException' => 'Exception',
|
||||
'PhortuneNoPaymentProviderException' => 'Exception',
|
||||
'PhortuneNotImplementedException' => 'Exception',
|
||||
'PhortuneOrderTableView' => 'AphrontView',
|
||||
'PhortunePayPalPaymentProvider' => 'PhortunePaymentProvider',
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
final class PhortuneMultiplePaymentProvidersException extends Exception {
|
||||
|
||||
public function __construct(PhortunePaymentMethod $method, array $providers) {
|
||||
assert_instances_of($providers, 'PhortunePaymentProvider');
|
||||
$type = $method->getMetadataValue('type');
|
||||
|
||||
$provider_names = array();
|
||||
foreach ($providers as $provider) {
|
||||
$provider_names[] = get_class($provider);
|
||||
}
|
||||
|
||||
return parent::__construct(
|
||||
"More than one payment provider can handle charging payments for this ".
|
||||
"payment method. This is ambiguous and likely indicates that a payment ".
|
||||
"provider is not properly implemented. You may be able to use a ".
|
||||
"different payment method to complete this transaction. The payment ".
|
||||
"method type is '{$type}'. The providers claiming to handle it are: ".
|
||||
implode(', ', $provider_names).'.');
|
||||
}
|
||||
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
|
||||
final class PhortuneNoPaymentProviderException extends Exception {
|
||||
|
||||
public function __construct(PhortunePaymentMethod $method) {
|
||||
$type = $method->getMetadataValue('type');
|
||||
|
||||
return parent::__construct(
|
||||
"No available payment provider can handle charging payments for this ".
|
||||
"payment method. You may be able to use a different payment method to ".
|
||||
"complete this transaction. The payment method type is '{$type}'.");
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue