diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-02 01:42:01 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-05 23:37:08 +0300 |
commit | 65d4c301d922c77039de3533778678acbd4eaabb (patch) | |
tree | 83433c37ad5be34729989ff15fce82d3f66b6fa0 /core/Application/Environment.php | |
parent | 52bed8ed6fd9240f476a7bf8c739b4d7eabfc9ff (diff) |
Move Environment.bootstrapped event observer in test.php DI config file to TestingEnvironmentManipulator.
Diffstat (limited to 'core/Application/Environment.php')
-rw-r--r-- | core/Application/Environment.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Application/Environment.php b/core/Application/Environment.php index b77c7d5c68..967b4d377b 100644 --- a/core/Application/Environment.php +++ b/core/Application/Environment.php @@ -93,6 +93,8 @@ class Environment $this->validateEnvironment(); + $this->invokeEnvironmentBootstrappedHook(); + Piwik::postEvent('Environment.bootstrapped'); // this event should be removed eventually } @@ -205,4 +207,11 @@ class Environment } return $result; } + + private function invokeEnvironmentBootstrappedHook() + { + foreach (self::$globalEnvironmentManipulators as $manipulator) { + $manipulator->onEnvironmentBootstrapped(); + } + } } |