module/Applications/src/Applications/Controller/ApplyController.php 1 location
|
@@ 47-56 (lines=10) @@
|
| 44 |
|
|
| 45 |
|
protected $container; |
| 46 |
|
|
| 47 |
|
public function attachDefaultListeners() |
| 48 |
|
{ |
| 49 |
|
parent::attachDefaultListeners(); |
| 50 |
|
$events = $this->getEventManager(); |
| 51 |
|
$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
| 52 |
|
$serviceLocator = $this->getServiceLocator(); |
| 53 |
|
$defaultServices = $serviceLocator->get('DefaultListeners'); |
| 54 |
|
$events->attach($defaultServices); |
| 55 |
|
return $this; |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function preDispatch(MvcEvent $e) |
| 59 |
|
{ |
module/Core/src/Core/Controller/FileController.php 1 location
|
@@ 22-31 (lines=10) @@
|
| 19 |
|
|
| 20 |
|
class FileController extends AbstractActionController |
| 21 |
|
{ |
| 22 |
|
protected function attachDefaultListeners() |
| 23 |
|
{ |
| 24 |
|
parent::attachDefaultListeners(); |
| 25 |
|
$events = $this->getEventManager(); |
| 26 |
|
$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
| 27 |
|
|
| 28 |
|
$serviceLocator = $this->getServiceLocator(); |
| 29 |
|
$defaultServices = $serviceLocator->get('DefaultListeners'); |
| 30 |
|
$events->attach($defaultServices); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
public function preDispatch(MvcEvent $e) |
| 34 |
|
{ |
module/Jobs/src/Jobs/Controller/ManageController.php 1 location
|
@@ 37-48 (lines=12) @@
|
| 34 |
|
/** |
| 35 |
|
* @return $this|void |
| 36 |
|
*/ |
| 37 |
|
public function attachDefaultListeners() |
| 38 |
|
{ |
| 39 |
|
parent::attachDefaultListeners(); |
| 40 |
|
$events = $this->getEventManager(); |
| 41 |
|
$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
| 42 |
|
$serviceLocator = $this->getServiceLocator(); |
| 43 |
|
$defaultServices = $serviceLocator->get('DefaultListeners'); |
| 44 |
|
$events = $this->getEventManager(); |
| 45 |
|
$events->attach($defaultServices); |
| 46 |
|
|
| 47 |
|
return $this; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* Dispatch listener callback. |