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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-02-03 01:09:02 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-02-03 01:09:02 +0300
commitf79e473fe2f37681d9c5bb71d21907a890bbf714 (patch)
treee1abc81fac84685a47ea06159a4b74a6b32a9741 /core/FrontController.php
parente3faf18f9ed0368861f542e80f3dbaeb92fdeb8a (diff)
Removed Piwik\Registry and replaced its usage with the container
Diffstat (limited to 'core/FrontController.php')
-rw-r--r--core/FrontController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/FrontController.php b/core/FrontController.php
index 9accdfd9fc..dd1d44a856 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -264,7 +264,7 @@ class FrontController extends Singleton
}
/**
- * Loads the config file and assign to the global registry
+ * Loads the config file
* This is overridden in tests to ensure test config file is used
*
* @return Exception
@@ -415,14 +415,14 @@ class FrontController extends Singleton
* **Example**
*
* Piwik::addAction('Request.initAuthenticationObject', function() {
- * Piwik\Registry::set('auth', new MyAuthImplementation());
+ * StaticContainer::getContainer()->set('Piwik\Auth', new MyAuthImplementation());
* });
*/
Piwik::postEvent('Request.initAuthenticationObject');
try {
- $authAdapter = Registry::get('auth');
+ $authAdapter = StaticContainer::get('Piwik\Auth');
} catch (Exception $e) {
- $message = "Authentication object cannot be found in the Registry. Maybe the Login plugin is not activated?
+ $message = "Authentication object cannot be found in the container. Maybe the Login plugin is not activated?
<br />You can activate the plugin by adding:<br />
<code>Plugins[] = Login</code><br />
under the <code>[Plugins]</code> section in your config/config.ini.php";