Move LoginManager and SessionManager to the Security namespace

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
VirtualTam 2018-04-27 22:12:22 +02:00
parent 68dcaccfa4
commit fab87c2696
6 changed files with 8 additions and 7 deletions

View file

@ -1,5 +1,5 @@
<?php
namespace Shaarli;
namespace Shaarli\Security;
use Shaarli\Config\ConfigManager;

View file

@ -1,5 +1,5 @@
<?php
namespace Shaarli;
namespace Shaarli\Security;
use Shaarli\Config\ConfigManager;

View file

@ -36,7 +36,8 @@
"Shaarli\\Api\\Controllers\\": "application/api/controllers",
"Shaarli\\Api\\Exceptions\\": "application/api/exceptions",
"Shaarli\\Config\\": "application/config/",
"Shaarli\\Config\\Exception\\": "application/config/exception"
"Shaarli\\Config\\Exception\\": "application/config/exception",
"Shaarli\\Security\\": "application/security"
}
}
}

View file

@ -78,8 +78,8 @@
use \Shaarli\Languages;
use \Shaarli\ThemeUtils;
use \Shaarli\Config\ConfigManager;
use \Shaarli\LoginManager;
use \Shaarli\SessionManager;
use \Shaarli\Security\LoginManager;
use \Shaarli\Security\SessionManager;
// Ensure the PHP version is supported
try {

View file

@ -1,5 +1,5 @@
<?php
namespace Shaarli;
namespace Shaarli\Security;
require_once 'tests/utils/FakeConfigManager.php';
use \PHPUnit\Framework\TestCase;

View file

@ -5,7 +5,7 @@
require_once 'tests/utils/ReferenceSessionIdHashes.php';
ReferenceSessionIdHashes::genAllHashes();
use \Shaarli\SessionManager;
use \Shaarli\Security\SessionManager;
use \PHPUnit\Framework\TestCase;