diff options
author | diosmosis <benaka@piwik.pro> | 2015-05-21 00:41:43 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-05-21 18:32:41 +0300 |
commit | 0647faa7d74f16371475e24ccf8e9ad56e4b149b (patch) | |
tree | c3bd5b6fe4f1ec84e87143f0633893a71fa7fd56 /core/EventDispatcher.php | |
parent | 6e785703aca37f8db2434cc652ffa6de892652d1 (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.php | 4 |
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; } |