From 2713da2df71a2f3dfcd0ae3b66168541e3ed3c8c Mon Sep 17 00:00:00 2001 From: Vincent Lopes-Vicente Date: Tue, 20 Feb 2024 11:12:31 +0100 Subject: [PATCH] Add OpenApi folder to scan --- Config/module.xml | 2 +- Controller/OpenApiController.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Config/module.xml b/Config/module.xml index 7e783ee..4806a21 100644 --- a/Config/module.xml +++ b/Config/module.xml @@ -19,7 +19,7 @@ en_US fr_FR - 2.2.15 + 2.2.16 Vincent Lopes-Vicente diff --git a/Controller/OpenApiController.php b/Controller/OpenApiController.php index 0454737..451817f 100644 --- a/Controller/OpenApiController.php +++ b/Controller/OpenApiController.php @@ -25,6 +25,7 @@ public function getDocumentation(Request $request) $annotations = Generator::scan(Util::finder([ THELIA_MODULE_DIR.'/*/Model/Api', + THELIA_MODULE_DIR.'/*/Model/OpenApi', THELIA_MODULE_DIR.'/*/EventListener', THELIA_MODULE_DIR.'/*/ApiExtend', THELIA_MODULE_DIR.'/*/Controller',