From 2d248ec8ca12f74ec110a9d2fb71b8f602f04a8d Mon Sep 17 00:00:00 2001 From: Art4 Date: Fri, 1 Nov 2024 21:15:34 +0000 Subject: [PATCH] autoload addons via classmap instead of psr-4 --- composer.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 017f57a88f..21df229eaa 100644 --- a/composer.json +++ b/composer.json @@ -95,9 +95,12 @@ ], "autoload": { "psr-4": { - "Friendica\\": "src/", - "Friendica\\Addon\\": "addon/" - } + "Friendica\\": "src/" + }, + "classmap": ["addon/"], + "exclude-from-classmap": [ + "addon/*/vendor/" + ] }, "autoload-dev": { "psr-4": {