Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
bc91b35
feat: php 8.4
didoda Dec 9, 2024
cd1723f
Merge branch 'master' into feat/php-8.4
didoda Dec 27, 2024
a49e499
Merge branch 'master' into feat/php-8.4
didoda Jan 3, 2025
d2d0c8e
Merge branch 'master' into feat/php-8.4
didoda Jan 14, 2025
eac0432
Merge branch 'master' into feat/php-8.4
didoda Jan 23, 2025
fc6780a
Merge branch 'master' into feat/php-8.4
didoda Feb 18, 2025
d5ff66e
feat: update dependencies
didoda Mar 6, 2025
b06ea45
fix: phpcs
didoda Mar 6, 2025
4120348
fix: paths
didoda Mar 6, 2025
fe0aa1f
fix: phpcs
didoda Mar 6, 2025
eace93f
fix: phpcs
didoda Mar 6, 2025
417946b
fix: scrutinizer php 8.3.16
didoda Mar 6, 2025
00f8150
fix: phpstan
didoda Mar 6, 2025
d25eaa8
fix: psalm
didoda Mar 6, 2025
6f75fa0
fix: psalm
didoda Mar 6, 2025
2789434
fix: use FormProtection instead of Security component
didoda Mar 6, 2025
0168487
fix: TranslatorController defaultTable null
didoda Mar 6, 2025
5c2305b
tests: data provider static
didoda Mar 6, 2025
848c325
tests: ErrorControllerTest
didoda Mar 6, 2025
c9957f7
tests: fix ErrorControllerTest
didoda Mar 6, 2025
06bc1d5
fix: unit be5 on php 8.3
didoda Mar 6, 2025
e2931a4
tests: fix data provider static + phpunit coverage config
didoda Mar 6, 2025
d6fdc21
tests: helpers
didoda Mar 7, 2025
143dde9
Merge branch 'master' into feat/php-8.4
didoda Mar 7, 2025
5febbac
chore fix: phpcs
didoda Mar 7, 2025
3b3d194
chore fix: psalm
didoda Mar 7, 2025
0b5ba27
tests: utility
didoda Mar 7, 2025
c68ed9d
chore fix: phpcs
didoda Mar 7, 2025
d53a388
fix: cake log deprecations
didoda Mar 7, 2025
56e3e0f
tests: fix namespace
didoda Mar 7, 2025
1fdbd08
tests: api
didoda Mar 7, 2025
7268216
tests: middleware
didoda Mar 7, 2025
0bc62ac
tests: SchemaComponentTest
didoda Mar 7, 2025
981e5e4
tests: StatusMiddlewareTest
didoda Mar 7, 2025
8141c9f
tests: AppControllerTest
didoda Mar 7, 2025
acb27c6
tests: controllers
didoda Mar 7, 2025
fc09c7f
tests: exceptions, filter, result, event
didoda Mar 7, 2025
6eb081b
tests: form
didoda Mar 7, 2025
f6d6889
tests: controllers
didoda Mar 7, 2025
ffc2b6d
tests: RolesControllerTest
didoda Mar 7, 2025
f4e6ff1
tests: refactor vars
didoda Mar 7, 2025
613eebd
tests: cs, stan, and more
didoda Mar 7, 2025
bb8c6b4
fix: cake core to cake translations cache keys
didoda Mar 7, 2025
76e4d20
tests: components
didoda Mar 7, 2025
7feb15f
tests: controllers
didoda Mar 7, 2025
d929983
tests: controllers
didoda Mar 7, 2025
9a46b15
tests: controllers
didoda Mar 10, 2025
57404a4
tests: controllers
didoda Mar 10, 2025
a451c1f
tests: ExportController
didoda Mar 10, 2025
76c3034
tests: ExportController
didoda Mar 10, 2025
be41fae
fix: codeCoverageIgnore AdministrationBaseController::initialize
didoda Mar 10, 2025
bc9c145
chore fix: remove unused imports
didoda Mar 10, 2025
d66574e
fix: load plugins from bootstrap
didoda Mar 10, 2025
886b4c9
fix: ModulesController
didoda Mar 10, 2025
4b26a14
fix: phpstan
didoda Mar 10, 2025
c9b152c
fix: tests
didoda Mar 10, 2025
0af22ca
chore fix: phpcs
didoda Mar 10, 2025
4109399
refactor: set defaultTable to empty string
didoda Mar 10, 2025
63e847e
tests: fix
didoda Mar 10, 2025
e08c9b7
chore fix: phpdoc
didoda Mar 10, 2025
0f8d748
Merge branch 'master' into feat/php-8.4
didoda Mar 10, 2025
78aebe9
Merge branch 'master' into 6.x
didoda Mar 11, 2025
6a0b92e
Merge branch 'master' into 6.x
didoda Mar 11, 2025
6977f3a
Merge branch 'master' into 6.x
didoda Mar 12, 2025
dc2143e
Merge branch 'master' into 6.x
didoda Mar 13, 2025
b63f5b2
fix: TagsController FormProtection
didoda Mar 13, 2025
c208c0c
Merge branch 'master' into 6.x
didoda Mar 13, 2025
9ad9998
Merge branch 'master' into 6.x
didoda Mar 17, 2025
ef53fda
Merge branch 'master' into 6.x
didoda Mar 19, 2025
b6ee140
fix: phpcs trailing comma
didoda Mar 19, 2025
c1f3648
fix: phpunit cacheDirectory
didoda Mar 19, 2025
0c14ec9
Merge branch 'master' into 6.x
didoda Mar 21, 2025
edb7d98
Merge branch 'master' into 6.x
didoda Mar 24, 2025
c075db0
Merge branch 'master' into 6.x
didoda Mar 27, 2025
eafca25
fix: phpcs, stan, psalm
didoda Mar 27, 2025
4ed8d17
fix: phpdoc remove covers
didoda Mar 27, 2025
290d7de
Merge branch 'master' into 6.x
didoda Mar 27, 2025
0ec706c
fix: phpdoc and tests
didoda Mar 27, 2025
f64a0cb
fix: organize imports
didoda Mar 27, 2025
09d99ec
Merge branch 'master' into 6.x
didoda Mar 28, 2025
f86224c
Merge branch 'master' into 6.x
didoda Apr 1, 2025
8fc820e
fix: replace SecurityException with FormProtectionException
didoda Apr 1, 2025
dfacf0e
Merge branch 'master' into 6.x
didoda Apr 2, 2025
a67537c
Merge branch 'master' into 6.x
didoda Apr 2, 2025
905f3fa
Merge branch 'master' into 6.x
didoda Apr 8, 2025
97468e2
Merge branch 'master' into 6.x
didoda Apr 9, 2025
31e9dca
chore fix: phpcs
didoda Apr 9, 2025
7b68403
Merge branch 'master' into 6.x
didoda Apr 10, 2025
31ad6db
Merge branch 'master' into 6.x
didoda Apr 14, 2025
675f5a4
Merge branch 'master' into 6.x
didoda Apr 15, 2025
ad8e893
Merge branch 'master' into 6.x
didoda Apr 17, 2025
53a66be
chore fix: phpcs
didoda Apr 17, 2025
78595c4
Merge branch 'master' into 6.x
didoda May 6, 2025
9457964
Merge branch 'master' into 6.x
didoda May 16, 2025
efd2a1c
chore fix: phpcs
didoda May 16, 2025
5332b53
Merge branch 'master' into 6.x
didoda May 20, 2025
995bf75
chore fix: phpcs
didoda May 20, 2025
2b2942a
Merge branch 'master' into 6.x
didoda May 27, 2025
f12a9d1
fix: RolesControllerTest.php
didoda May 27, 2025
c728a45
fix: RolesControllerTest
didoda May 27, 2025
6fe00c8
chore fix: phpstan
didoda May 27, 2025
939737c
Merge branch 'master' into 6.x
didoda Jun 13, 2025
942bf96
fix: phpcs trailing comma after last parameter
didoda Jun 13, 2025
d83c929
fix: psalm method signature and too few arguments
didoda Jun 13, 2025
3107308
fix: phpstan
didoda Jun 13, 2025
d4537c3
Merge branch 'master' into 6.x
didoda Jun 17, 2025
69901c5
Merge branch 'master' into 6.x
didoda Jun 23, 2025
f23e6d0
chore fix: phpcs
didoda Jun 23, 2025
3dbda85
fix: psalm and stan
didoda Jun 23, 2025
a3f281f
Merge branch 'master' into 6.x
didoda Jun 26, 2025
04d4130
Merge branch 'master' into 6.x
didoda Jul 3, 2025
3f01638
Merge branch 'master' into 6.x
didoda Jul 3, 2025
076ca83
fix: tests bootstrap
didoda Jul 3, 2025
96b9681
fix: tests bootstrap imports
didoda Jul 3, 2025
d0181ec
Merge branch 'master' into 6.x
didoda Jul 10, 2025
d980dee
chore fix: phpcs
didoda Jul 10, 2025
fe192af
Merge branch 'master' into 6.x
didoda Jul 31, 2025
8235821
fix: deprecation loadIdentifier
didoda Jul 31, 2025
11c04f9
fix: tests using authenticator and identifier
didoda Jul 31, 2025
fe30103
chore fix: phpcs and phpstan
didoda Jul 31, 2025
7e406b2
Merge branch 'master' into 6.x
didoda Aug 6, 2025
064f057
chore fix: phpcs + stan
didoda Aug 6, 2025
38c0599
Merge branch 'master' into 6.x
didoda Aug 12, 2025
5ecf3c4
Merge branch 'master' into 6.x
didoda Sep 4, 2025
aaaa76b
fix: phpcs
didoda Sep 4, 2025
83fe0da
fix: phpstan
didoda Sep 4, 2025
093ef77
Merge branch 'master' into 6.x
didoda Sep 11, 2025
c244792
chore fix: phpcs
didoda Sep 11, 2025
b2523fe
fix: phpunit CoversMethod extract
didoda Sep 11, 2025
280fb20
Merge branch 'master' into 6.x
didoda Sep 15, 2025
753ba57
Merge branch 'master' into 6.x
didoda Oct 8, 2025
db8d49c
chore fix: phpcs
didoda Oct 8, 2025
c801c93
fix: tests
didoda Oct 8, 2025
cd81e50
feat: BE v6-alpha
didoda Oct 21, 2025
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
13 changes: 10 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,28 @@ jobs:
cs:
uses: bedita/github-workflows/.github/workflows/php-cs.yml@v2
with:
php_versions: '["8.3"]'
php_versions: '["8.4"]'

psalm:
uses: bedita/github-workflows/.github/workflows/php-psalm.yml@v2
with:
php_versions: '["8.3"]'
php_versions: '["8.4"]'

stan:
uses: bedita/github-workflows/.github/workflows/php-stan.yml@v2
with:
php_versions: '["8.3"]'
php_versions: '["8.4"]'

unit-5:
uses: bedita/github-workflows/.github/workflows/php-unit.yml@v2
with:
php_versions: '["8.3"]'
bedita_version: '5'
coverage_min_percentage: 98

unit-6:
uses: bedita/github-workflows/.github/workflows/php-unit.yml@v2
with:
php_versions: '["8.4"]'
bedita_version: '6-alpha'
coverage_min_percentage: 98
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build:
analysis:
environment:
php:
version: 8.3.3
version: 8.3.16
tests:
override:
- php-scrutinizer-run
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Github Actions Javascript](https://github.com/bedita/manager/workflows/javascript/badge.svg)](https://github.com/bedita/manager/actions?query=workflow%3Ajavascript)
[![codecov](https://codecov.io/gh/bedita/manager/branch/master/graph/badge.svg)](https://codecov.io/gh/bedita/manager)
[![phpstan](https://img.shields.io/badge/PHPStan-level%205-brightgreen.svg)](https://phpstan.org)
[![psalm](https://img.shields.io/badge/psalm-level%208-brightgreen.svg)](https://psalm.dev)
[![psalm](https://img.shields.io/badge/psalm-level%207-brightgreen.svg)](https://psalm.dev)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bedita/manager/badges/quality-score.png)](https://scrutinizer-ci.com/g/bedita/manager/)
[![Version](https://img.shields.io/packagist/v/bedita/manager.svg?label=stable)](https://packagist.org/packages/bedita/manager)
[![License](https://img.shields.io/badge/License-LGPL_v3-orange.svg)](https://github.com/bedita/manager/blob/master/LICENSE.LGPL)
Expand Down
31 changes: 16 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
],
"require": {
"php": ">=8.3",
"bedita/i18n": "^5.1.0",
"bedita/web-tools": "^5.3.3",
"cakephp/authentication": "^2.9",
"cakephp/cakephp": "~4.5.0",
"bedita/i18n": "^6.0.0",
"bedita/web-tools": "^6.0.0",
"cakephp/authentication": "^3.0.3",
"cakephp/cakephp": "^5.0",
"cakephp/plugin-installer": "^1.3",
"josegonzalez/dotenv": "^4.0",
"league/flysystem": "^3.16",
Expand All @@ -37,17 +37,17 @@
"wikimedia/composer-merge-plugin": "^2.0.1"
},
"require-dev": {
"cakephp/bake": "^2.6",
"cakephp/cakephp-codesniffer": "~4.7.0",
"cakephp/console": "^4.4",
"cakephp/debug_kit": "^4.7.1",
"cakephp/repl": "^0.1",
"dereuromark/cakephp-ide-helper": "~1.17.0",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpunit/phpunit": "^9.6",
"vimeo/psalm": "^5.18"
"cakephp/bake": "^3.2",
"cakephp/cakephp-codesniffer": "^5.0",
"cakephp/console": "^5.0",
"cakephp/debug_kit": "^5.0",
"cakephp/repl": "^2.0",
"dereuromark/cakephp-ide-helper": "^2.6",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpunit/phpunit": "^11.1.3",
"vimeo/psalm": "^6.8"
},
"autoload": {
"psr-4": {
Expand All @@ -68,6 +68,7 @@
"@test",
"@cs-check"
],
"psalm": "vendor/bin/psalm",
"stan": "vendor/bin/phpstan analyse",
"cs-check": "vendor/bin/phpcs",
"cs-fix": "vendor/bin/phpcbf",
Expand Down
8 changes: 4 additions & 4 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@
* Duration will be set to '+2 minutes' in bootstrap.php when debug = true
* If you set 'className' => 'Null' core cache will be disabled.
*/
'_cake_core_' => [
'_cake_translations_' => [
'className' => FileEngine::class,
'prefix' => 'manager_cake_core_',
'prefix' => 'manager_cake_translations_',
'path' => CACHE . 'persistent/',
'serialize' => true,
'duration' => '+1 years',
Expand Down Expand Up @@ -263,15 +263,15 @@
'path' => LOGS,
'file' => 'debug',
'url' => env('LOG_DEBUG_URL', null),
'scopes' => false,
'scopes' => null,
'levels' => ['notice', 'info', 'debug'],
],
'error' => [
'className' => FileLog::class,
'path' => LOGS,
'file' => 'error',
'url' => env('LOG_ERROR_URL', null),
'scopes' => false,
'scopes' => null,
'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'],
],
],
Expand Down
14 changes: 9 additions & 5 deletions config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
*/
require CORE_PATH . 'config' . DS . 'bootstrap.php';

require CAKE . 'functions.php';

use Cake\Cache\Cache;
use Cake\Core\Configure;
use Cake\Core\Configure\Engine\IniConfig;
Expand All @@ -39,6 +41,8 @@
use Cake\Log\Log;
use Cake\Routing\Router;
use Cake\Utility\Security;
use Detection\MobileDetect;
use josegonzalez\Dotenv\Loader;

/*
* See https://github.com/josegonzalez/php-dotenv for API details.
Expand All @@ -55,7 +59,7 @@
* for more information for recommended practices.
*/
if (!env('APP_NAME') && file_exists(CONFIG . '.env')) {
$dotenv = new \josegonzalez\Dotenv\Loader([CONFIG . '.env']);
$dotenv = new Loader([CONFIG . '.env']);
$dotenv->parse()
->putenv()
->toEnv()
Expand Down Expand Up @@ -94,7 +98,7 @@
Configure::config('ini', new IniConfig());
Configure::load('version', 'ini');
Configure::load('bedita-api-version', 'ini');
} catch (\Exception $e) {
} catch (Exception $e) {
exit($e->getMessage() . "\n");
}

Expand All @@ -112,7 +116,7 @@
*/
if (Configure::read('debug')) {
Configure::write('Cache._cake_model_.duration', '+2 minutes');
Configure::write('Cache._cake_core_.duration', '+2 minutes');
Configure::write('Cache._cake_translations_.duration', '+2 minutes');
Configure::write('Cache._schema_types_.duration', '+2 minutes');
Configure::write('Cache._project_config_.duration', '+2 minutes');
Configure::write('Cache._thumbs_.duration', '+2 minutes');
Expand Down Expand Up @@ -191,12 +195,12 @@
* and the mobiledetect package from composer.json.
*/
ServerRequest::addDetector('mobile', function ($request) {
$detector = new \Detection\MobileDetect();
$detector = new MobileDetect();

return $detector->isMobile();
});
ServerRequest::addDetector('tablet', function ($request) {
$detector = new \Detection\MobileDetect();
$detector = new MobileDetect();

return $detector->isTablet();
});
Expand Down
16 changes: 12 additions & 4 deletions config/paths.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
/**
* The full path to the directory which holds "src", WITHOUT a trailing DS.
*/
define('ROOT', dirname(__DIR__));
if (!defined('ROOT')) {
define('ROOT', dirname(__DIR__));
}

/**
* The actual directory name for the application directory. Normally
Expand Down Expand Up @@ -85,10 +87,16 @@
*
* CakePHP should always be installed with composer, so look there.
*/
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'vendor' . DS . 'cakephp' . DS . 'cakephp');
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'vendor' . DS . 'cakephp' . DS . 'cakephp');
}

/**
* Path to the cake directory.
*/
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
define('CAKE', CORE_PATH . 'src' . DS);
if (!defined('CORE_PATH')) {
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
}
if (!defined('CAKE')) {
define('CAKE', CORE_PATH . 'src' . DS);
}
Loading
Loading