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/Auth.php
parente3faf18f9ed0368861f542e80f3dbaeb92fdeb8a (diff)
Removed Piwik\Registry and replaced its usage with the container
Diffstat (limited to 'core/Auth.php')
-rw-r--r--core/Auth.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Auth.php b/core/Auth.php
index 8e3a1e28e9..45bc22062b 100644
--- a/core/Auth.php
+++ b/core/Auth.php
@@ -16,7 +16,7 @@ use Exception;
*
* Plugins that provide Auth implementations must provide a class that implements
* this interface. Additionally, an instance of that class must be set in the
- * {@link \Piwik\Registry} class with the 'auth' key during the
+ * container with the 'Piwik\Auth' key during the
* [Request.initAuthenticationObject](http://developer.piwik.org/api-reference/events#requestinitauthenticationobject)
* event.
*
@@ -34,13 +34,13 @@ use Exception;
* **How an Auth implementation will be used**
*
* // authenticating by password
- * $auth = \Piwik\Registry::get('auth');
+ * $auth = StaticContainer::get('Piwik\Auth');
* $auth->setLogin('user');
* $auth->setPassword('password');
* $result = $auth->authenticate();
*
* // authenticating by token auth
- * $auth = \Piwik\Registry::get('auth');
+ * $auth = StaticContainer::get('Piwik\Auth');
* $auth->setLogin('user');
* $auth->setTokenAuth('...');
* $result = $auth->authenticate();