Total Complexity | 3 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class PaypalExpressControllerProvider extends AbstractYvesControllerProvider |
||
|
|||
14 | { |
||
15 | public const ROUTE_PAYPAL_EXPRESS_SUCCESS_RESPONSE = 'paypal-express-success'; |
||
16 | public const ROUTE_PAYPAL_EXPRESS_SHIPMENT_ADD = 'paypal-express-shipment-add'; |
||
17 | |||
18 | /** |
||
19 | * @param \Silex\Application $app |
||
20 | * |
||
21 | * @return $this |
||
22 | */ |
||
23 | protected function defineControllers(Application $app) |
||
24 | { |
||
25 | $this->addPaypalExpressSuccessResponseRoute(); |
||
26 | $this->addPaypalExpressAddShipmentRoute(); |
||
27 | |||
28 | return $this; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @uses \SprykerEco\Yves\Braintree\Controller\PaypalExpressController::successAction() |
||
33 | * |
||
34 | * @return $this |
||
35 | */ |
||
36 | protected function addPaypalExpressSuccessResponseRoute() |
||
37 | { |
||
38 | $this->createController( |
||
39 | '/paypal-express/payment/success', |
||
40 | static::ROUTE_PAYPAL_EXPRESS_SUCCESS_RESPONSE, |
||
41 | 'Braintree', |
||
42 | 'PaypalExpress', |
||
43 | 'success' |
||
44 | ); |
||
45 | |||
46 | return $this; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @uses \SprykerEco\Yves\Braintree\Controller\PaypalExpressController::successAction() |
||
51 | * |
||
52 | * @return $this |
||
53 | */ |
||
54 | protected function addPaypalExpressAddShipmentRoute() |
||
65 | } |
||
66 | } |
||
67 |