Compare commits

...

4 Commits

5 changed files with 46 additions and 22 deletions

4
.gitignore vendored
View File

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

View File

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

View File

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

View File

@ -1,7 +1,14 @@
<?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()

View File

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