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; }