From 8480006e484fa1139c156620bf5741db8e6ccb1b Mon Sep 17 00:00:00 2001 From: Damilola Date: Tue, 9 Jul 2024 10:51:44 +0100 Subject: [PATCH 1/4] chore: update core library --- composer.json | 2 +- composer.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index f37d241..e83f413 100755 --- a/composer.json +++ b/composer.json @@ -22,6 +22,6 @@ ] }, "require": { - "cube-php/core": "^0.1.18" + "cube-php/core": "^0.1.21" } } diff --git a/composer.lock b/composer.lock index ff3f4ad..90a51b8 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b9baacb52c95a0cc36b27c301ac99131", + "content-hash": "711119a9a83015ab96ce86a4af192824", "packages": [ { "name": "cube-php/core", - "version": "0.1.18", + "version": "0.1.21", "source": { "type": "git", "url": "https://github.com/cube-php/core.git", - "reference": "9dda3d049285673af27925bd3a907ecdab4f8cb8" + "reference": "4fb6c88f64dc395426cdbd8b8c93aeb25cd21112" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cube-php/core/zipball/9dda3d049285673af27925bd3a907ecdab4f8cb8", - "reference": "9dda3d049285673af27925bd3a907ecdab4f8cb8", + "url": "https://api.github.com/repos/cube-php/core/zipball/4fb6c88f64dc395426cdbd8b8c93aeb25cd21112", + "reference": "4fb6c88f64dc395426cdbd8b8c93aeb25cd21112", "shasum": "" }, "require": { @@ -48,9 +48,9 @@ "description": "PHP Cube core utilities", "support": { "issues": "https://github.com/cube-php/core/issues", - "source": "https://github.com/cube-php/core/tree/v0.1.18" + "source": "https://github.com/cube-php/core/tree/v0.1.21" }, - "time": "2024-06-01T00:49:14+00:00" + "time": "2024-07-09T09:42:07+00:00" }, { "name": "psr/cache", From 33bec97e9b42069060ecdce5b80ddadeb548f7b2 Mon Sep 17 00:00:00 2001 From: Damilola Date: Tue, 9 Jul 2024 10:52:02 +0100 Subject: [PATCH 2/4] chore: added session settings to app config --- config/app.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/config/app.php b/config/app.php index 1abed30..09b2050 100755 --- a/config/app.php +++ b/config/app.php @@ -41,6 +41,21 @@ * * if app is not installed in the root directory */ - 'directory' => '' + 'directory' => '', -); \ No newline at end of file + /** + * Session handler + * + * default: PHP default session handler + * database: CubePHP Database session handler + */ + 'session' => 'default', + + /** + * Database connection to use for sessions + * Required when session = database + * Required when the database connection is not the default db connection + * + */ + 'session_connection' => null +); From de959dfe86a4f43a6fa04b5f90b792358f827dc5 Mon Sep 17 00:00:00 2001 From: Damilola Date: Tue, 9 Jul 2024 10:52:15 +0100 Subject: [PATCH 3/4] fix: disable prefix for components by default --- config/cli.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/cli.php b/config/cli.php index 672775b..1bde011 100644 --- a/config/cli.php +++ b/config/cli.php @@ -2,8 +2,8 @@ use Cube\Helpers\Cli\Cli; -return array ( +return array( Cli::CONFIG_SUFFIX => array( - + 'component' => false ) -); \ No newline at end of file +); From 95a43fd94a6935ce6411865bdafae6a613256743 Mon Sep 17 00:00:00 2001 From: Damilola Date: Tue, 9 Jul 2024 10:53:05 +0100 Subject: [PATCH 4/4] chore: tag new version `v0.10.4` --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e83f413..76c2567 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "cube-php/cube", "description": "A minimal PHP Framework for building simple and scalable web applications", "type": "project", - "version": "0.10.3", + "version": "0.10.4", "license": "MIT", "autoload": { "psr-4": {