2 namespace Auction\Controller;
6 class AuctionController 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 \Auction\Service\Auction();
19 $service->setWorkflow($this->serviceLocator->get('Auction'));
20 $service->cronProcess();
24 public function processCustomAction()
26 \Utility\Registry::setServiceManager($this->serviceLocator);
27 \Utility\Registry::addDynamicConfig(
28 \Utility\Registry::getEntityManager()
29 ->getRepository('Config\Entity\Config')
33 $service = new \Auction\Service\Auction();
34 $service->setWorkflow($this->serviceLocator->get('Auction'));
35 $service->cronProcessCustom();
39 public function processCleanupAction()
41 \Utility\Registry::setServiceManager($this->serviceLocator);
42 \Utility\Registry::addDynamicConfig(
43 \Utility\Registry::getEntityManager()
44 ->getRepository('Config\Entity\Config')
48 $service = new \Auction\Service\Auction();
49 $service->setWorkflow($this->serviceLocator->get('Auction'));
50 $service->cronProcessCleanup();
54 public function newsletterAction()
56 \Utility\Registry::setServiceManager($this->serviceLocator);
57 \Utility\Registry::addDynamicConfig(
58 \Utility\Registry::getEntityManager()
59 ->getRepository('Config\Entity\Config')
63 $service = new \Auction\Service\Auction();
64 $service->setWorkflow($this->serviceLocator->get('Auction'));
65 $service->newsletterProcess();