Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.7.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace Shopware\PremsOnePageCheckout\Subscriber;
  15.  
  16.  
  17. class Checkout implements \Enlight\Event\SubscriberInterface
  18. {
  19. /**
  20. * @var Bootstrap $bootstrap
  21. */
  22. protected $bootstrap = null;
  23.  
  24. /**
  25. * @param \Shopware\Components\DependencyInjection\Container $container
  26. * @param \Shopware_Plugins_Frontend_PremsOnePageCheckout_Bootstrap $bootstrap
  27. */
  28. public function __construct(\Shopware\Components\DependencyInjection\Container $container, Shopware_Plugins_Frontend_PremsOnePageCheckout_Bootstrap $bootstrap)
  29. {
  30. $this->container = $container;
  31. $this->bootstrap = $bootstrap;
  32. }
  33.  
  34. public static function getSubscribedEvents()
  35. {
  36. return array(
  37. 'Enlight_Controller_Action_PreDispatch_Frontend_Checkout' => 'onPreDispatchCheckout',
  38. 'Enlight_Controller_Action_PostDispatchSecure_Frontend_Checkout' => 'onPostDispatchCheckout',
  39. 'sAdmin::sCheckUser::after' => 'afterCheckUser',
  40. 'Shopware_Controllers_Frontend_Checkout::saveTemporaryOrder::replace' => 'replaceSaveTemporaryOrder',
  41. 'Enlight_Controller_Action_PostDispatchSecure_Frontend_PaymentPaypal' => 'onPostDispatchPaymentPaypalCancelAction'
  42. );
  43. }
  44.  
  45. public function onPostDispatchPaymentPaypalCancelAction(Enlight_Event_EventArgs $args)
  46. {
  47. $controller = $args->getSubject( );
  48. $request = $controller->Request( );
  49. ...................................................................
  50. ................................
  51. ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement