Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.

Commit e1c3589

Browse files
committed
refs matomo-org/matomo#7124 Updated the usage of the deprecated registry
1 parent f8b673b commit e1c3589

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

LoginHttpAuth.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace Piwik\Plugins\LoginHttpAuth;
1010

1111
use Exception;
12+
use Piwik\Container\StaticContainer;
1213
use Piwik\Plugin\Manager;
1314
use Piwik\Plugins\Login\Login;
1415

@@ -46,7 +47,7 @@ public function deactivate()
4647
public function initAuthenticationObject($activateCookieAuth = false)
4748
{
4849
$auth = new Auth();
49-
\Piwik\Registry::set('auth', $auth);
50+
StaticContainer::getContainer()->set('Piwik\Auth', $auth);
5051

5152
$login = new Login();
5253
return $login->initAuthenticationFromCookie($auth, $activateCookieAuth);

plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "LoginHttpAuth",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Sign in Piwik using HTTP Auth protocol instead of the standard Login mechanism.",
55
"require": {
6-
"piwik": ">=2.9.1"
6+
"piwik": ">=2.11.0-b5"
77
},
88
"authors": [
99
{

0 commit comments

Comments
 (0)