Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-05-21 00:41:43 +0300
committerdiosmosis <benaka@piwik.pro>2015-05-21 18:32:41 +0300
commit0647faa7d74f16371475e24ccf8e9ad56e4b149b (patch)
treec3bd5b6fe4f1ec84e87143f0633893a71fa7fd56 /core/EventDispatcher.php
parent6e785703aca37f8db2434cc652ffa6de892652d1 (diff)
Use observers.global DI config in TestingEnvironment to define event observers, since the container is not created at this point.
Diffstat (limited to 'core/EventDispatcher.php')
-rw-r--r--core/EventDispatcher.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/EventDispatcher.php b/core/EventDispatcher.php
index 7bd674f2df..55b83e4d1d 100644
--- a/core/EventDispatcher.php
+++ b/core/EventDispatcher.php
@@ -64,11 +64,11 @@ class EventDispatcher
/**
* Constructor.
*/
- public function __construct(Plugin\Manager $pluginManager, array $globalObservers = array())
+ public function __construct(Plugin\Manager $pluginManager, array $observers = array())
{
$this->pluginManager = $pluginManager;
- foreach ($globalObservers as $observerInfo) {
+ foreach ($observers as $observerInfo) {
list($eventName, $callback) = $observerInfo;
$this->extraObservers[$eventName][] = $callback;
}