From a9a64afa1369678a93666fa0b2807b06eec89cc2 Mon Sep 17 00:00:00 2001 From: Alin Jurj Date: Wed, 11 Mar 2015 12:25:31 +0200 Subject: [PATCH] Update RegistryFactory.php no more fata lerror on service locator call from payments --- src/Payum/PayumModule/Registry/RegistryFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Payum/PayumModule/Registry/RegistryFactory.php b/src/Payum/PayumModule/Registry/RegistryFactory.php index 885054f..2bc6f64 100644 --- a/src/Payum/PayumModule/Registry/RegistryFactory.php +++ b/src/Payum/PayumModule/Registry/RegistryFactory.php @@ -21,14 +21,14 @@ public function createService(ServiceLocatorInterface $serviceLocator) $options->getStorages(), [] ); + + //TODO: quick fix. we should avoid early init of services. has to be reworked to be lazy + $registry->setServiceLocator($serviceLocator); $getHttpRequestAction = new GetHttpRequestAction($serviceLocator); foreach ($registry->getPayments() as $payment) { $payment->addAction($getHttpRequestAction); } - - //TODO: quick fix. we should avoid early init of services. has to be reworked to be lazy - $registry->setServiceLocator($serviceLocator); return $registry; }