2 namespace Company\Controller;
6 class CompanyController extends \Zend\Mvc\Controller\AbstractActionController
9 public function processAction()
11 \Utility\Registry::setServiceManager($this->serviceLocator);
12 \Utility\Registry::addDynamicConfig(
13 \Utility\Registry::getEntityManager()
14 ->getRepository('Config\Entity\Config')
18 $service = new \Company\Service\Company();
20 $service->setWorkflow($this->serviceLocator->get('Company'));
22 $service->checkDocuments();
29 public function publicClubsAction()
31 \Utility\Registry::setServiceManager($this->serviceLocator);
32 \Utility\Registry::addDynamicConfig(
33 \Utility\Registry::getEntityManager()
34 ->getRepository('Config\Entity\Config')
39 $companyId = $this->getRequest()->getParam('companyId');
40 $service = new \Company\Service\Company();
41 $service->setWorkflow($this->serviceLocator->get('Company'));
42 $service->linkPublicCentreClubs($companyId);