From f79e473fe2f37681d9c5bb71d21907a890bbf714 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Tue, 3 Feb 2015 11:09:02 +1300 Subject: Removed Piwik\Registry and replaced its usage with the container --- core/FrontController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/FrontController.php') 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?
You can activate the plugin by adding:
Plugins[] = Login
under the [Plugins] section in your config/config.ini.php"; -- cgit v1.2.3