Differential D20717 Diff 49434 src/applications/phortune/application/PhabricatorPhortuneApplication.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/application/PhabricatorPhortuneApplication.php
Show All 33 Lines | public function getRoutes() { | ||||
return array( | return array( | ||||
'/phortune/' => array( | '/phortune/' => array( | ||||
'' => 'PhortuneLandingController', | '' => 'PhortuneLandingController', | ||||
'(?P<accountID>\d+)/' => array( | '(?P<accountID>\d+)/' => array( | ||||
'' => 'PhortuneAccountOverviewController', | '' => 'PhortuneAccountOverviewController', | ||||
'card/' => array( | 'card/' => array( | ||||
'new/' => 'PhortunePaymentMethodCreateController', | 'new/' => 'PhortunePaymentMethodCreateController', | ||||
), | ), | ||||
'order/(?:query/(?P<queryKey>[^/]+)/)?' | |||||
=> 'PhortuneCartListController', | |||||
'subscription/' => array( | 'subscription/' => array( | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' | '(?:query/(?P<queryKey>[^/]+)/)?' | ||||
=> 'PhortuneSubscriptionListController', | => 'PhortuneSubscriptionListController', | ||||
'view/(?P<id>\d+)/' | 'view/(?P<id>\d+)/' | ||||
=> 'PhortuneSubscriptionViewController', | => 'PhortuneSubscriptionViewController', | ||||
'edit/(?P<id>\d+)/' | 'edit/(?P<id>\d+)/' | ||||
=> 'PhortuneSubscriptionEditController', | => 'PhortuneSubscriptionEditController', | ||||
'order/(?P<subscriptionID>\d+)/' | 'order/(?P<subscriptionID>\d+)/' | ||||
=> 'PhortuneCartListController', | => 'PhortuneCartListController', | ||||
), | ), | ||||
'order/(?:query/(?P<queryKey>[^/]+)/)?' | |||||
=> 'PhortuneCartListController', | |||||
'charge/(?:query/(?P<queryKey>[^/]+)/)?' | 'charge/(?:query/(?P<queryKey>[^/]+)/)?' | ||||
=> 'PhortuneAccountChargeListController', | => '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', | ||||
Show All 13 Lines | return array( | ||||
'charges/' => 'PhortuneAccountChargesController', | 'charges/' => 'PhortuneAccountChargesController', | ||||
'subscriptions/' => 'PhortuneAccountSubscriptionController', | 'subscriptions/' => 'PhortuneAccountSubscriptionController', | ||||
'managers/' => array( | 'managers/' => array( | ||||
'' => 'PhortuneAccountManagersController', | '' => 'PhortuneAccountManagersController', | ||||
'add/' => 'PhortuneAccountAddManagerController', | 'add/' => 'PhortuneAccountAddManagerController', | ||||
), | ), | ||||
'addresses/' => array( | 'addresses/' => array( | ||||
'' => 'PhortuneAccountEmailAddressesController', | '' => 'PhortuneAccountEmailAddressesController', | ||||
'(?P<id>\d+)/' => 'PhortuneAccountEmailViewController', | |||||
$this->getEditRoutePattern('edit/') | $this->getEditRoutePattern('edit/') | ||||
=> 'PhortuneAccountEmailEditController', | => 'PhortuneAccountEmailEditController', | ||||
), | ), | ||||
), | ), | ||||
), | ), | ||||
'address/' => array( | |||||
'(?P<id>\d+)/' => 'PhortuneAccountEmailViewController', | |||||
$this->getEditRoutePattern('edit/') | |||||
=> 'PhortuneAccountEmailEditController', | |||||
), | |||||
'product/' => array( | 'product/' => array( | ||||
'' => 'PhortuneProductListController', | '' => 'PhortuneProductListController', | ||||
'view/(?P<id>\d+)/' => 'PhortuneProductViewController', | 'view/(?P<id>\d+)/' => 'PhortuneProductViewController', | ||||
'edit/(?:(?P<id>\d+)/)?' => 'PhortuneProductEditController', | 'edit/(?:(?P<id>\d+)/)?' => 'PhortuneProductEditController', | ||||
), | ), | ||||
'provider/' => array( | 'provider/' => array( | ||||
'edit/(?:(?P<id>\d+)/)?' => 'PhortuneProviderEditController', | 'edit/(?:(?P<id>\d+)/)?' => 'PhortuneProviderEditController', | ||||
'disable/(?P<id>\d+)/' => 'PhortuneProviderDisableController', | 'disable/(?P<id>\d+)/' => 'PhortuneProviderDisableController', | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |