serviceLocator); \Utility\Registry::addDynamicConfig( \Utility\Registry::getEntityManager() ->getRepository('Config\Entity\Config') ->find(1) ->toArray() ); $service = new \Valuation\Service\Valuation(); $service->setWorkflow($this->serviceLocator->get('Valuation')); $changeCode = $this->getRequest()->getParam('changeCode'); $id = $this->getRequest()->getParam('id'); $skipId = $this->getRequest()->getParam('skipId'); $service->pushChange($changeCode, $id, $skipId); return "\n"; } }