From 808b6ef2923b01ff44546667cf1608ba04690ce6 Mon Sep 17 00:00:00 2001 From: AbmSourav Date: Thu, 27 Jul 2023 02:44:36 +0600 Subject: [PATCH] template schema issue fixed --- composer.json | 3 ++- src/Commands/KathamoCLI.php | 2 +- src/content-schema.php | 3 +-- src/templates/project/composer_json.mustache | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index f20905f..b62b060 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "codesvault/kathamo-generator", "description": "Kathamo Generator is the CLI for Kathamo framework.", - "version": "1.3.1", + "version": "1.3.2", "type": "library", "minimum-stability": "stable", "autoload": { @@ -34,6 +34,7 @@ ], "license": "MIT", "keywords": [ + "cli", "wordpress", "kathamo", "wordpress plugin", diff --git a/src/Commands/KathamoCLI.php b/src/Commands/KathamoCLI.php index 5e56f3a..890c082 100644 --- a/src/Commands/KathamoCLI.php +++ b/src/Commands/KathamoCLI.php @@ -15,7 +15,7 @@ public function __construct() { $app = new Application(); $app->add(new Scaffold()); - // $app->add(new Template()); // only for development + $app->add(new Template()); // only for development $app->add(new MakeMiddleware()); $app->add(new MakeController()); diff --git a/src/content-schema.php b/src/content-schema.php index 7ac5d2c..cbe86b0 100644 --- a/src/content-schema.php +++ b/src/content-schema.php @@ -1,8 +1,7 @@ '"{{namespace_prefix}}\\\\App\\\\": "app/",', - '"Kathamo\\\\Database\\\\": "database/"' => '"{{namespace_prefix}}\\\\Database\\\\": "database/"', + '"Kathamo\\\\App\\\\": "app/"' => '"{{namespace_prefix}}\\\\App\\\\": "app/"', '@package kathamo' => '@package {{text_domain}}', 'Plugin Name: Kathamo' => 'Plugin Name: {{plugin_name}}', 'Text Domain: kathamo' => 'Text Domain: {{text_domain}}', diff --git a/src/templates/project/composer_json.mustache b/src/templates/project/composer_json.mustache index b2e4223..21733ce 100644 --- a/src/templates/project/composer_json.mustache +++ b/src/templates/project/composer_json.mustache @@ -15,7 +15,7 @@ ], "autoload": { "psr-4": { - "Kathamo\\App\\": "app/" + "{{namespace_prefix}}\\App\\": "app/" } }, "scripts": {