module/Applications/src/Applications/Controller/ApplyController.php 1 location
|
@@ 49-58 (lines=10) @@
|
| 46 |
|
|
| 47 |
|
protected $container; |
| 48 |
|
|
| 49 |
|
public function attachDefaultListeners() |
| 50 |
|
{ |
| 51 |
|
parent::attachDefaultListeners(); |
| 52 |
|
$events = $this->getEventManager(); |
| 53 |
|
$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
| 54 |
|
$serviceLocator = $this->serviceLocator; |
| 55 |
|
$defaultServices = $serviceLocator->get('DefaultListeners'); |
| 56 |
|
$events->attach($defaultServices); |
| 57 |
|
return $this; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
public function preDispatch(MvcEvent $e) |
| 61 |
|
{ |
module/Jobs/src/Jobs/Controller/ManageController.php 1 location
|
@@ 77-88 (lines=12) @@
|
| 74 |
|
/** |
| 75 |
|
* @return $this|void |
| 76 |
|
*/ |
| 77 |
|
public function attachDefaultListeners() |
| 78 |
|
{ |
| 79 |
|
parent::attachDefaultListeners(); |
| 80 |
|
$events = $this->getEventManager(); |
| 81 |
|
$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
| 82 |
|
$serviceLocator = $this->serviceLocator; |
| 83 |
|
$defaultServices = $serviceLocator->get('DefaultListeners'); |
| 84 |
|
$events = $this->getEventManager(); |
| 85 |
|
$events->attach($defaultServices); |
| 86 |
|
|
| 87 |
|
return $this; |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
/** |
| 91 |
|
* Dispatch listener callback. |
module/Core/src/Core/Controller/FileController.php 1 location
|
@@ 28-37 (lines=10) @@
|
| 25 |
|
*/ |
| 26 |
|
class FileController extends AbstractActionController |
| 27 |
|
{ |
| 28 |
|
protected function attachDefaultListeners() |
| 29 |
|
{ |
| 30 |
|
parent::attachDefaultListeners(); |
| 31 |
|
$events = $this->getEventManager(); |
| 32 |
|
$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
| 33 |
|
|
| 34 |
|
$serviceLocator = $this->serviceLocator; |
| 35 |
|
$defaultServices = $serviceLocator->get('DefaultListeners'); |
| 36 |
|
$events->attach($defaultServices); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
public function preDispatch(MvcEvent $e) |
| 40 |
|
{ |