Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
e83427b
Update support storage for diferent sessions handlers.
terabytesoftw Jul 28, 2024
cdcb484
Update session component declaration in Application.php and remove un…
terabytesoftw Jul 28, 2024
a255a2f
Fix bug in AbstractDbSessionTest.
terabytesoftw Jul 28, 2024
4581292
Update session component declaration in UserTest.php.
terabytesoftw Jul 28, 2024
9785d0f
Remove unnecessary session close calls.
terabytesoftw Jul 28, 2024
d393171
Update session handling to remove unnecessary session close calls and…
terabytesoftw Jul 28, 2024
69b8c87
Update session handling to improve performance and fix bugs.
terabytesoftw Jul 28, 2024
99c818e
Update session handling to improve performance and fix bugs.
terabytesoftw Jul 29, 2024
191a300
Refactor AbstractDbSessionTest to remove unnecessary session data in …
terabytesoftw Jul 29, 2024
59bf85a
Add more tests.
terabytesoftw Jul 29, 2024
6e621a8
Add more tests.
terabytesoftw Jul 29, 2024
9c40ee8
Add more tests.
terabytesoftw Jul 29, 2024
0013f5c
Add more tests.
terabytesoftw Jul 29, 2024
695b0b4
Fix style ci.
terabytesoftw Jul 29, 2024
631b891
Add more tests.
terabytesoftw Jul 29, 2024
4571220
Add more tests.
terabytesoftw Jul 30, 2024
e1f2a50
Refactor Flash constructor for improved readability and performance.
terabytesoftw Jul 30, 2024
45633cb
Add more tests.
terabytesoftw Jul 30, 2024
fe905f8
Add more tests.
terabytesoftw Jul 30, 2024
186c4f3
Add more tests.
terabytesoftw Jul 30, 2024
c310e98
Add more tests.
terabytesoftw Jul 30, 2024
b8b5acb
Rework all tests.
terabytesoftw Jul 30, 2024
0111663
replace session destroy with session close in AbstractDbSession.php.
terabytesoftw Jul 30, 2024
41db250
Fix tests.
terabytesoftw Jul 30, 2024
5ff76df
Refactor session parameter tests for improved readability and maintai…
terabytesoftw Jul 31, 2024
e50017a
Add more tests.
terabytesoftw Jul 31, 2024
0c22106
Add more tests.
terabytesoftw Jul 31, 2024
e6e39ad
Update AbstractDbSession.php to handle resource data in session.
terabytesoftw Jul 31, 2024
b6a1205
Add more tests.
terabytesoftw Jul 31, 2024
7279166
Add more tests.
terabytesoftw Jul 31, 2024
30d92c1
Add more tests.
terabytesoftw Jul 31, 2024
d44a76a
Fix tests.
terabytesoftw Jul 31, 2024
200ae38
refactor: Remove ext-uopz dependency and update session tests for imp…
terabytesoftw Jul 31, 2024
3bafa5c
Debug tests 1.
terabytesoftw Jul 31, 2024
100bccf
fix tests.
terabytesoftw Jul 31, 2024
8085551
Fix tests.
terabytesoftw Jul 31, 2024
ce08fb5
Remove continue-on-error flag from SQLite test job.
terabytesoftw Jul 31, 2024
b2a7a86
Add php-mock/php-mock-phpunit dependency for unit testing.
terabytesoftw Jul 31, 2024
5555356
Improve session test readability and maintainability.
terabytesoftw Jul 31, 2024
48e0670
Fix tests again.
terabytesoftw Jul 31, 2024
00421e1
Fix tests again.
terabytesoftw Jul 31, 2024
1816d27
Raise code coverage 100%.
terabytesoftw Jul 31, 2024
0d7d7c8
Remove unnecessary session destroy calls in AbstractDbSession tests.
terabytesoftw Jul 31, 2024
7c65091
Raise code coverage 100%.
terabytesoftw Jul 31, 2024
eb0def7
Refactor AbstractDbSession tests for better readability and maintaina…
terabytesoftw Jul 31, 2024
4df3061
Raise code coverage 100%.
terabytesoftw Jul 31, 2024
0590fb4
Raise code coverage 100%.
terabytesoftw Jul 31, 2024
e9ea15f
Add more tests.
terabytesoftw Jul 31, 2024
79f073f
Raise code coverage 100%.
terabytesoftw Jul 31, 2024
ff1116e
Refactor SessionExceptionTest for better readability and maintainabil…
terabytesoftw Jul 31, 2024
bf9a562
Fix tests.
terabytesoftw Jul 31, 2024
43909ee
Raise code coverage 100%.
terabytesoftw Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:

- name: Run SQLite tests with PHPUnit and generate coverage.
if: matrix.php == '8.1'
continue-on-error: true
run: vendor/bin/phpunit --group sqlite --coverage-clover=coverage.xml --colors=always --verbose

- name: Run SQLite tests with PHPUnit.
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"require-dev": {
"dms/phpunit-arraysubset-asserts": "^0.5",
"maglnet/composer-require-checker": "^4.7",
"php-mock/php-mock-phpunit": "^2.10",
"phpunit/phpunit": "^9.5",
"yiisoft/cache-file": "^3.1"
},
Expand Down
13 changes: 4 additions & 9 deletions src/web/Application.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/

declare(strict_types=1);

namespace yii\web;

use Yii;
use yii\base\InvalidRouteException;
use yii\helpers\Url;
use yii\web\session\Session;

/**
* Application is the base class for all web application classes.
Expand All @@ -22,9 +20,6 @@
* @property-read Response $response The response component.
* @property-read Session $session The session component.
* @property-read User $user The user component.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class Application extends \yii\base\Application
{
Expand Down Expand Up @@ -195,7 +190,7 @@ public function coreComponents()
return array_merge(parent::coreComponents(), [
'request' => ['class' => 'yii\web\Request'],
'response' => ['class' => 'yii\web\Response'],
'session' => ['class' => 'yii\web\Session'],
'session' => ['class' => Session::class],
'user' => ['class' => 'yii\web\User'],
'errorHandler' => ['class' => 'yii\web\ErrorHandler'],
]);
Expand Down
146 changes: 0 additions & 146 deletions src/web/CacheSession.php

This file was deleted.

Loading