text changes to registration mail content
[namibia] / module / Valuation / src / Valuation / Controller / ValuationController.php
1 <?php
2 namespace Valuation\Controller;
3
4
5
6
7 class ValuationController extends \Zend\Mvc\Controller\AbstractActionController
8 {
9
10         /**
11          * @var \Zend\Session\Container
12          */
13         protected $session;
14         /**
15          * @var array
16          */
17         protected $request;
18         /**
19          * @var array
20          */
21         protected $response;
22         /**
23          * @var \Zend\ServiceManager\ServiceManager
24          */
25         protected $sm;
26
27         protected $em;
28         /**
29          * @var boolean
30          */
31         protected $authenticated = false;
32         /**
33          * @var \User\Service\Authentication
34          */
35         protected $authDetails;
36
37
38
39         public function pushChangeAction()
40         {
41                 \Utility\Registry::setServiceManager($this->serviceLocator);
42                 \Utility\Registry::addDynamicConfig(
43                         \Utility\Registry::getEntityManager()
44                                 ->getRepository('Config\Entity\Config')
45                                 ->find(1)
46                                 ->toArray()
47                 );
48                 $service = new \Valuation\Service\Valuation();
49                 $service->setWorkflow($this->serviceLocator->get('Valuation'));
50                 $changeCode = $this->getRequest()->getParam('changeCode');
51                 $id         = $this->getRequest()->getParam('id');
52                 $skipId     = $this->getRequest()->getParam('skipId');
53                 $service->pushChange($changeCode, $id, $skipId);
54                 return "\n";
55         }
56
57 }