debug: click to refresh when creating auction
[namibia] / module / Auction / src / Auction / Controller / AuctionController.php
1 <?php
2 namespace Auction\Controller;
3
4
5
6 class AuctionController 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 \Auction\Service\Auction();
19                 $service->setWorkflow($this->serviceLocator->get('Auction'));
20                 $service->cronProcess();
21                 return "\n";
22         }
23
24         public function processCustomAction()
25         {
26                 \Utility\Registry::setServiceManager($this->serviceLocator);
27                 \Utility\Registry::addDynamicConfig(
28                                 \Utility\Registry::getEntityManager()
29                                 ->getRepository('Config\Entity\Config')
30                                 ->find(1)
31                                 ->toArray()
32                 );
33                 $service = new \Auction\Service\Auction();
34                 $service->setWorkflow($this->serviceLocator->get('Auction'));
35                 $service->cronProcessCustom();
36                 return "\n";
37         }
38
39         public function processCleanupAction()
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 \Auction\Service\Auction();
49                 $service->setWorkflow($this->serviceLocator->get('Auction'));
50                 $service->cronProcessCleanup();
51                 return "\n";
52         }
53
54         public function newsletterAction()
55         {
56                 \Utility\Registry::setServiceManager($this->serviceLocator);
57                 \Utility\Registry::addDynamicConfig(
58                                 \Utility\Registry::getEntityManager()
59                                 ->getRepository('Config\Entity\Config')
60                                 ->find(1)
61                                 ->toArray()
62                 );
63                 $service = new \Auction\Service\Auction();
64                 $service->setWorkflow($this->serviceLocator->get('Auction'));
65                 $service->newsletterProcess();
66                 return "\n";
67         }
68
69 }