initial commit
[namibia] / module / Company / src / Company / Controller / CompanyController.php
1 <?php
2 namespace Company\Controller;
3
4
5
6 class CompanyController extends \Zend\Mvc\Controller\AbstractActionController
7 {
8
9         public function processAction()
10         {
11                 \Utility\Registry::setServiceManager($this->serviceLocator);
12                 \Utility\Registry::addDynamicConfig(
13                                 \Utility\Registry::getEntityManager()
14                                 ->getRepository('Config\Entity\Config')
15                                 ->find(1)
16                                 ->toArray()
17                 );
18                 $service = new \Company\Service\Company();
19                 
20                 $service->setWorkflow($this->serviceLocator->get('Company'));
21                 
22                 $service->checkDocuments();
23                 
24                 return "\n";
25                 
26                 
27         }
28         
29         public function publicClubsAction()
30         {
31                 \Utility\Registry::setServiceManager($this->serviceLocator);
32                 \Utility\Registry::addDynamicConfig(
33                                 \Utility\Registry::getEntityManager()
34                                 ->getRepository('Config\Entity\Config')
35                                 ->find(1)
36                                 ->toArray()
37                 );
38
39                 $companyId = $this->getRequest()->getParam('companyId');
40                 $service = new \Company\Service\Company();
41                 $service->setWorkflow($this->serviceLocator->get('Company'));
42                 $service->linkPublicCentreClubs($companyId);
43         
44                 return "\n";
45         
46         
47         }
48         
49
50 }