diff --git a/.env.sample b/.env.sample index 1d3ff67..56a4a52 100755 --- a/.env.sample +++ b/.env.sample @@ -43,6 +43,8 @@ HTTP_PORT_PARAM=--port #SSL_CERTIFICATE=/path/to/cert #SSL_KEY=/path/to/key +SESSION_DRIVER=file + # -------------------------------------------------------------------- # WebSocket # -------------------------------------------------------------------- diff --git a/composer.lock b/composer.lock index 4550be7..950341e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5410f8c573476aa3470b51ccfd600ba8", + "content-hash": "145000c6e6f121cf121d7f7d565fe2df", "packages": [ { "name": "aura/autoload", @@ -1429,17 +1429,11 @@ }, { "name": "kanata-php/kanata-core", - "version": "0.8.12", - "source": { - "type": "git", - "url": "https://github.com/kanata-php/kanata-core.git", - "reference": "6f314c18f92216ee5a8d201e5e9a1938c8fab173" - }, + "version": "dev-master", "dist": { - "type": "zip", - "url": "https://api.github.com/repos/kanata-php/kanata-core/zipball/6f314c18f92216ee5a8d201e5e9a1938c8fab173", - "reference": "6f314c18f92216ee5a8d201e5e9a1938c8fab173", - "shasum": "" + "type": "path", + "url": "packages/kanata-core", + "reference": "6f314c18f92216ee5a8d201e5e9a1938c8fab173" }, "require": { "aura/autoload": "^2.0", @@ -1497,20 +1491,22 @@ "type": "library", "autoload": { "psr-4": { - "Tests\\": "tests", - "Kanata\\": "src/Kanata" + "Kanata\\": "src/Kanata", + "Tests\\": "tests" } }, - "notification-url": "https://packagist.org/downloads/", + "scripts": { + "test": [ + "./vendor/bin/phpunit" + ] + }, "license": [ "MIT" ], "description": "Kanata App Starter Core", - "support": { - "issues": "https://github.com/kanata-php/kanata-core/issues", - "source": "https://github.com/kanata-php/kanata-core/tree/0.8.12" - }, - "time": "2023-08-07T00:32:02+00:00" + "transport-options": { + "relative": true + } }, { "name": "kanata-php/kanata-plugin-sdk", @@ -8381,7 +8377,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "kanata-php/kanata-core": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/config/app.php b/config/app.php index ffe0b64..ac786c2 100755 --- a/config/app.php +++ b/config/app.php @@ -14,6 +14,7 @@ // Session // ------------------------------------------------------------------ + 'session-driver' => env('SESSION_DRIVER', 'file'), 'session-key' => env('SESSION_PREFIX', 'eyJpZCI6IjU0'), // ------------------------------------------------------------------ diff --git a/docs/Readme.md b/docs/Readme.md index b676bf6..f386d8b 100644 --- a/docs/Readme.md +++ b/docs/Readme.md @@ -140,8 +140,8 @@ WS_SSL_KEY=/path/to/key > **Helper**: `socket_communication()` > This helper is useful for broadcasting messages asynchronously. Imagine that you need to broadcast a -> message form a place where you have no access to the WebSocket context, e.g.: from a queue handler. This -> returns an instance of a `\Swoole\Table` class that is consumed by the WebSocket Server "tick". In the +> message from a place where you have no access to the WebSocket context, e.g.: from a queue handler. This +> returns an instance of an Eloquent Model class that is consumed by the WebSocket Server "tick". In the > next second (interval customizable by the environment variable `WS_TICK_INTERVAL`) the information added > to it will be consumed in the other side. This is how you use it: > @@ -936,4 +936,4 @@ echo make_path_relative_to_project('/var/www/storage/cache'); ### Roadmap -- upgrade flysystem (https://flysystem.thephpleague.com/v1/docs/) to v3. \ No newline at end of file +- upgrade flysystem (https://flysystem.thephpleague.com/v1/docs/) to v3. diff --git a/storage/sessions/.gitignore b/storage/sessions/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/sessions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore