From 040632d8cff8b42124b7c3b5ebf941bb86028c6e Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 3 Jun 2026 16:56:00 +0700 Subject: [PATCH] chore: Bump structarmed to 0.11.0 and use new expanded +LayerName in the config --- composer.json | 2 +- structarmed.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 51568a0e0406..1416b9e8e8cb 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "psr/log": "^3.0" }, "require-dev": { - "boundwize/structarmed": "0.9.1", + "boundwize/structarmed": "0.11.0", "codeigniter/phpstan-codeigniter": "^1.5", "fakerphp/faker": "^1.24", "kint-php/kint": "^6.1", diff --git a/structarmed.php b/structarmed.php index 69bfaf1d197f..e1027f578ce2 100644 --- a/structarmed.php +++ b/structarmed.php @@ -101,7 +101,7 @@ 'Pager' => ['URI', 'View'], 'Publisher' => ['Files', 'URI'], // +API = API + its allowed layers; +Controller = Controller + its allowed layers - 'RESTful' => ['API', 'Controller', 'Database', 'Format', 'HTTP', 'Model', 'Pager', 'URI', 'Validation'], + 'RESTful' => ['+API', '+Controller'], 'Router' => ['HTTP', 'I18n'], 'Security' => ['Cookie', 'HTTP', 'I18n', 'Session'], 'Session' => ['Cookie', 'Database', 'HTTP', 'I18n'],