From 7b5155ab174485f173cbbffdfe2fb695114e74fc Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Tue, 26 Jan 2021 20:42:46 +0800 Subject: [PATCH] Specifically exclude migrations from class mapping --- admin/framework/composer.json | 5 ++++- admin/module/composer.json | 2 +- admin/starter/composer.json | 5 ++++- composer.json | 5 ++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/admin/framework/composer.json b/admin/framework/composer.json index 542e5330d96a..df3468dba72a 100644 --- a/admin/framework/composer.json +++ b/admin/framework/composer.json @@ -28,7 +28,10 @@ "autoload": { "psr-4": { "CodeIgniter\\": "system/" - } + }, + "exclude-from-classmap": [ + "**/Database/Migrations/**" + ] }, "scripts": { "post-update-cmd": [ diff --git a/admin/module/composer.json b/admin/module/composer.json index e9ab1fbaf626..e2f0eee8dd25 100644 --- a/admin/module/composer.json +++ b/admin/module/composer.json @@ -4,7 +4,7 @@ "homepage": "https://codeigniter.com", "license": "MIT", "require": { - "php": "^7.2 || ^8.0", + "php": "^7.2 || ^8.0" }, "require-dev": { "codeigniter4/codeigniter4": "dev-develop", diff --git a/admin/starter/composer.json b/admin/starter/composer.json index 75569e6cb2a8..16c99faba777 100644 --- a/admin/starter/composer.json +++ b/admin/starter/composer.json @@ -20,7 +20,10 @@ "psr-4": { "App\\": "app", "Config\\": "app/Config" - } + }, + "exclude-from-classmap": [ + "**/Database/Migrations/**" + ] }, "autoload-dev": { "psr-4": { diff --git a/composer.json b/composer.json index 03550c6035d1..be1033f5f94f 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,10 @@ "autoload": { "psr-4": { "CodeIgniter\\": "system/" - } + }, + "exclude-from-classmap": [ + "**/Database/Migrations/**" + ] }, "autoload-dev": { "psr-4": {