Move session class files
This commit is contained in:
parent
9ab53558f0
commit
f802b36ca9
|
@ -50,7 +50,7 @@ use Icinga\Web\Request;
|
||||||
use Icinga\Web\View;
|
use Icinga\Web\View;
|
||||||
|
|
||||||
use Icinga\Util\DateTimeFactory;
|
use Icinga\Util\DateTimeFactory;
|
||||||
use Icinga\Session\Session as BaseSession;
|
use Icinga\Web\Session\Session as BaseSession;
|
||||||
use Icinga\Web\Session;
|
use Icinga\Web\Session;
|
||||||
use Icinga\Util\Translator;
|
use Icinga\Util\Translator;
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
|
|
||||||
namespace Icinga\Web;
|
namespace Icinga\Web;
|
||||||
|
|
||||||
use Icinga\Session\PhpSession;
|
use Icinga\Web\Session\PhpSession;
|
||||||
use Icinga\Session\Session as BaseSession;
|
use Icinga\Web\Session\Session as BaseSession;
|
||||||
use Icinga\Exception\ProgrammingError;
|
use Icinga\Exception\ProgrammingError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
*/
|
*/
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
namespace Icinga\Session;
|
namespace Icinga\Web\Session;
|
||||||
|
|
||||||
use Icinga\Logger\Logger;
|
use Icinga\Logger\Logger;
|
||||||
use \Icinga\Exception\ConfigurationError;
|
use \Icinga\Exception\ConfigurationError;
|
|
@ -27,8 +27,7 @@
|
||||||
*/
|
*/
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
namespace Icinga\Session;
|
namespace Icinga\Web\Session;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for handling sessions
|
* Base class for handling sessions
|
|
@ -27,7 +27,7 @@
|
||||||
*/
|
*/
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
namespace Icinga\Session;
|
namespace Icinga\Web\Session;
|
||||||
|
|
||||||
use \Exception;
|
use \Exception;
|
||||||
use \ArrayIterator;
|
use \ArrayIterator;
|
|
@ -32,7 +32,7 @@ namespace Tests\Icinga\Authentication;
|
||||||
require_once("../../library/Icinga/Session/SessionNamespace.php");
|
require_once("../../library/Icinga/Session/SessionNamespace.php");
|
||||||
require_once("../../library/Icinga/Session/Session.php");
|
require_once("../../library/Icinga/Session/Session.php");
|
||||||
|
|
||||||
use Icinga\Session\Session;
|
use Icinga\Web\Session\Session;
|
||||||
|
|
||||||
class SessionMock extends Session
|
class SessionMock extends Session
|
||||||
{
|
{
|
||||||
|
@ -72,4 +72,8 @@ class SessionMock extends Session
|
||||||
public function purge()
|
public function purge()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function refreshId()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,14 +36,15 @@ require_once realpath(__DIR__ . '/../../../../../library/Icinga/Test/BaseTestCas
|
||||||
use Icinga\Test\BaseTestCase;
|
use Icinga\Test\BaseTestCase;
|
||||||
|
|
||||||
// @codingStandardsIgnoreStart
|
// @codingStandardsIgnoreStart
|
||||||
require_once BaseTestCase::$libDir . '/Session/Session.php';
|
require_once BaseTestCase::$libDir . '/Web/Session/SessionNamespace.php';
|
||||||
require_once BaseTestCase::$libDir . '/Session/PhpSession.php';
|
require_once BaseTestCase::$libDir . '/Web/Session/Session.php';
|
||||||
require_once BaseTestCase::$libDir . '/Application/Logger.php';
|
require_once BaseTestCase::$libDir . '/Web/Session/PhpSession.php';
|
||||||
|
require_once BaseTestCase::$libDir . '/Logger/Logger.php';
|
||||||
require_once BaseTestCase::$libDir . '/Exception/ConfigurationError.php';
|
require_once BaseTestCase::$libDir . '/Exception/ConfigurationError.php';
|
||||||
require_once 'Zend/Log.php';
|
require_once 'Zend/Log.php';
|
||||||
// @codingStandardsIgnoreEnd
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
use Icinga\Session\PhpSession;
|
use Icinga\Web\Session\PhpSession;
|
||||||
|
|
||||||
class PhpSessionTest extends BaseTestCase
|
class PhpSessionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,11 +34,11 @@ require_once realpath(__DIR__ . '/../../../../../library/Icinga/Test/BaseTestCas
|
||||||
use Icinga\Test\BaseTestCase;
|
use Icinga\Test\BaseTestCase;
|
||||||
|
|
||||||
// @codingStandardsIgnoreStart
|
// @codingStandardsIgnoreStart
|
||||||
require_once BaseTestCase::$libDir . '/Session/SessionNamespace.php';
|
require_once BaseTestCase::$libDir . '/Web/Session/SessionNamespace.php';
|
||||||
// @codingStandardsIgnoreEnd
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
use \Exception;
|
use \Exception;
|
||||||
use Icinga\Session\SessionNamespace;
|
use Icinga\Web\Session\SessionNamespace;
|
||||||
|
|
||||||
|
|
||||||
class SessionNamespaceTest extends BaseTestCase
|
class SessionNamespaceTest extends BaseTestCase
|
||||||
|
|
Loading…
Reference in New Issue