Compare commits

..

No commits in common. "stable" and "1.1.x" have entirely different histories.

5 changed files with 22 additions and 46 deletions

4
.gitignore vendored
View File

@ -1,3 +1 @@
!.gitignore
composer.phar
vendor
/vendor/

View File

@ -1,35 +1,24 @@
{
"name": "mirzaev/yii2-sessions-arangodb",
"description": "Module with yii\\web\\DbSession implementation for use with ArangoDB",
"name": "mirzaev/yii2-arangodb-sessions",
"description": "yii\\web\\DbSession implementation for use with ArangoDB",
"keywords": [
"Yii2",
"ArangoDB",
"DbSession"
],
"type": "yii2-extension",
"license": "WTFPL",
"homepage": "https://git.mirzaev.sexy/mirzaev/yii2-sessions-arangodb",
"license": "AGPL-3.0-or-later",
"homepage": "https://git.hood.su/mirzaev/yii2/arangodb/sessions",
"authors": [
{
"name": "Arsen Mirzaev Tatyano-Muradovich",
"email": "arsen@mirzaev.sexy",
"homepage": "https://mirzaev.sexy",
"role": "Programmer"
}
],
"support": {
"email": "arsen@mirzaev.sexy",
"wiki": "https://git.mirzaev.sexy/mirzaev/yii2-sessions-arangodb/wiki",
"issues": "https://git.mirzaev.sexy/mirzaev/yii2-sessions-arangodb/issues"
},
"funding": [
{
"type": "funding",
"url": "https://fund.mirzaev.sexy"
"email": "red@hood.su",
"homepage": "https://hood.su/mirzaev",
"role": "Developer"
}
],
"require": {
"php": "^8.0",
"php": "^8.0.0",
"yiisoft/yii2": "2.*",
"mirzaev/yii2-arangodb": "~2.1.x-dev"
},
@ -38,12 +27,12 @@
},
"autoload": {
"psr-4": {
"mirzaev\\yii2\\arangodb\\sessions\\": "mirzaev/yii2/sessions/arangodb/system"
"mirzaev\\yii2\\arangodb\\sessions\\": "mirzaev/yii2/arangodb/sessions"
}
},
"autoload-dev": {
"psr-4": {
"mirzaev\\yii2\\arangodb\\sessions\\tests\\": "mirzaev/yii2/sessions/arangodb/tests"
"mirzaev\\yii2\\arangodb\\sessions\\tests\\": "mirzaev/yii2/arangodb/sessions/tests"
}
}
}

View File

@ -2,18 +2,15 @@
declare(strict_types=1);
namespace mirzaev\yii2\sessions\arangodb;
namespace mirzaev\yii2\arangodb\sessions;
// Фреймворк Yii
use yii;
use yii\di\Instance;
use yii\base\InvalidConfigException;
// Модуль ArangoDB для фреймворка Yii
use mirzaev\yii2\arangodb\Connection,
mirzaev\yii2\arangodb\Query;
use mirzaev\yii2\arangodb\Connection;
use mirzaev\yii2\arangodb\Query;
// Встроенные библиотеки
use Exception;
/**
@ -47,8 +44,8 @@ use Exception;
*
* @see yii\web\DbSession Наследует, копирует (Inherit, copy)
*
* @package mirzaev\yii2\sessions\arangodb
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
* @package yii2\ArangoDB
* @author Arsen Mirzaev Tatyano-Muradovich <red@hood.su>
*
* @since 2.0
*/

View File

@ -1,14 +1,7 @@
<?php
// Модуль ArangoDB для фреймворка Yii
use mirzaev\yii2\arangodb\Migration;
/**
* Создание коллекции для хранения сессий
*
* @package mirzaev\yii2\sessions\arangodb
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
class create_sessions_collection extends Migration
{
public function up()
@ -24,4 +17,4 @@ class create_sessions_collection extends Migration
{
$this->dropCollection('sessions');
}
}
}

View File

@ -2,11 +2,11 @@
declare(strict_types=1);
namespace mirzaev\yii2\sessions\arangodb;
namespace mirzaev\yii2\arangodb\sessions;
// Фреймворк Yii
use yii,
yii\web\Session;
use yii;
use yii\web\Session;
/**
* Базовый класс для реализации хранилища сессий
@ -15,8 +15,7 @@ use yii,
*
* @property-read bool $useCustomStorage Разрешение использовать своё хранилища (Whether to use custom storage)
*
* @package mirzaev\yii2\sessions\arangodb
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
* @author Arsen Mirzaev Tatyano-Muradovich <red@hood.su>
* @author Paul Klimov <klimov.paul@gmail.com>
*/
abstract class MultiFieldSession extends Session