2 namespace PriceGuide\Controller;
6 class PriceGuideController extends \Zend\Mvc\Controller\AbstractActionController
9 public function notifyAction()
11 \Utility\Registry::setServiceManager($this->serviceLocator);
12 \Utility\Registry::addDynamicConfig(
13 \Utility\Registry::getEntityManager()
14 ->getRepository('Config\Entity\Config')
18 $service = new \PriceGuide\Service\PriceGuide();
19 $service->setWorkflow($this->serviceLocator->get('PriceGuide'));
20 $pgId = $this->getRequest()->getParam('pgId');
21 $fromCompanyId = $this->getRequest()->getParam('cmpId');
22 $fromProfileId = $this->getRequest()->getParam('prfId');
23 $record = \Utility\Registry::getEntityManager()
24 ->getRepository('PriceGuide\Entity\PriceGuide')
26 $service->sendToMembers($record, $fromCompanyId, $fromProfileId);
30 public function processAction()
32 \Utility\Registry::setServiceManager($this->serviceLocator);
33 \Utility\Registry::addDynamicConfig(
34 \Utility\Registry::getEntityManager()
35 ->getRepository('Config\Entity\Config')
39 $service = new \PriceGuide\Service\PriceGuide();
40 $service->setWorkflow($this->serviceLocator->get('PriceGuide'));
41 $service->cronProcess();