Differential D20732 Diff 49439 src/applications/phortune/application/PhabricatorPhortuneApplication.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/application/PhabricatorPhortuneApplication.php
Show All 28 Lines | final class PhabricatorPhortuneApplication extends PhabricatorApplication { | ||||
public function isPrototype() { | public function isPrototype() { | ||||
return true; | return true; | ||||
} | } | ||||
public function getRoutes() { | public function getRoutes() { | ||||
return array( | return array( | ||||
'/phortune/' => array( | '/phortune/' => array( | ||||
'' => 'PhortuneLandingController', | '' => 'PhortuneLandingController', | ||||
'(?P<accountID>\d+)/' => array( | |||||
'' => 'PhortuneAccountOverviewController', | |||||
'card/' => array( | |||||
'new/' => 'PhortunePaymentMethodCreateController', | |||||
), | |||||
'subscription/' => array( | |||||
'(?:query/(?P<queryKey>[^/]+)/)?' | |||||
=> 'PhortuneSubscriptionListController', | |||||
'view/(?P<id>\d+)/' | |||||
=> 'PhortuneAccountSubscriptionViewController', | |||||
'order/(?P<subscriptionID>\d+)/' | |||||
=> 'PhortuneCartListController', | |||||
), | |||||
'order/(?:query/(?P<queryKey>[^/]+)/)?' | |||||
=> 'PhortuneCartListController', | |||||
'charge/(?:query/(?P<queryKey>[^/]+)/)?' | |||||
=> 'PhortuneChargeListController', | |||||
), | |||||
'card/(?P<id>\d+)/' => array( | 'card/(?P<id>\d+)/' => array( | ||||
'edit/' => 'PhortunePaymentMethodEditController', | 'edit/' => 'PhortunePaymentMethodEditController', | ||||
'disable/' => 'PhortunePaymentMethodDisableController', | 'disable/' => 'PhortunePaymentMethodDisableController', | ||||
), | ), | ||||
'cart/(?P<id>\d+)/' => array( | 'cart/(?P<id>\d+)/' => array( | ||||
'' => 'PhortuneCartViewController', | '' => 'PhortuneCartViewController', | ||||
'checkout/' => 'PhortuneCartCheckoutController', | 'checkout/' => 'PhortuneCartCheckoutController', | ||||
'(?P<action>print)/' => 'PhortuneCartViewController', | '(?P<action>print)/' => 'PhortuneCartViewController', | ||||
'(?P<action>cancel|refund)/' => 'PhortuneCartCancelController', | '(?P<action>cancel|refund)/' => 'PhortuneCartCancelController', | ||||
'update/' => 'PhortuneCartUpdateController', | 'update/' => 'PhortuneCartUpdateController', | ||||
), | ), | ||||
'account/' => array( | 'account/' => array( | ||||
'' => 'PhortuneAccountListController', | '' => 'PhortuneAccountListController', | ||||
$this->getEditRoutePattern('edit/') | $this->getEditRoutePattern('edit/') | ||||
=> 'PhortuneAccountEditController', | => 'PhortuneAccountEditController', | ||||
'(?P<accountID>\d+)/' => array( | '(?P<accountID>\d+)/' => array( | ||||
'' => 'PhortuneAccountOverviewController', | |||||
'details/' => 'PhortuneAccountDetailsController', | 'details/' => 'PhortuneAccountDetailsController', | ||||
'methods/' => array( | 'methods/' => array( | ||||
'' => 'PhortuneAccountPaymentMethodController', | '' => 'PhortuneAccountPaymentMethodController', | ||||
'(?P<id>\d+)/' => 'PhortuneAccountPaymentMethodViewController', | '(?P<id>\d+)/' => 'PhortuneAccountPaymentMethodViewController', | ||||
'new/' => 'PhortunePaymentMethodCreateController', | |||||
), | |||||
'orders/' => array( | |||||
'' => 'PhortuneAccountOrdersController', | |||||
$this->getQueryRoutePattern('list/') | |||||
=> 'PhortuneAccountOrderListController', | |||||
), | |||||
'charges/' => array( | |||||
'' => 'PhortuneAccountChargesController', | |||||
$this->getQueryRoutePattern('list/') | |||||
=> 'PhortuneAccountChargeListController', | |||||
), | ), | ||||
'orders/' => 'PhortuneAccountOrdersController', | |||||
'charges/' => 'PhortuneAccountChargesController', | |||||
'subscriptions/' => array( | 'subscriptions/' => array( | ||||
'' => 'PhortuneAccountSubscriptionController', | '' => 'PhortuneAccountSubscriptionController', | ||||
'(?P<subscriptionID>\d+)/' => array( | '(?P<subscriptionID>\d+)/' => array( | ||||
'' => 'PhortuneAccountSubscriptionViewController', | |||||
'autopay/(?P<methodID>\d+)/' | 'autopay/(?P<methodID>\d+)/' | ||||
=> 'PhortuneAccountSubscriptionAutopayController', | => 'PhortuneAccountSubscriptionAutopayController', | ||||
$this->getQueryRoutePattern('orders/') | |||||
=> 'PhortuneAccountOrderListController', | |||||
), | ), | ||||
), | ), | ||||
'managers/' => array( | 'managers/' => array( | ||||
'' => 'PhortuneAccountManagersController', | '' => 'PhortuneAccountManagersController', | ||||
'add/' => 'PhortuneAccountAddManagerController', | 'add/' => 'PhortuneAccountAddManagerController', | ||||
), | ), | ||||
'addresses/' => array( | 'addresses/' => array( | ||||
'' => 'PhortuneAccountEmailAddressesController', | '' => 'PhortuneAccountEmailAddressesController', | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |