From 8f3ac6ce89ad7760b2f2881549b73b437bc0ca59 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Thu, 10 Aug 2023 18:27:27 -0700 Subject: [PATCH] 1.6.1 - fix double-backslash --- CHANGELOG.md | 3 +++ src/generators/Service.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10719c5..c736963 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Release Notes for Craft Generator +## 1.6.1 - 2023-08-10 +- Fixed a double-backslash bug. + ## 1.6.0 - 2023-08-10 - Added `craft\generator\BaseGenerator::messageTwig()`. ([#25](https://github.com/craftcms/generator/pull/25)) - The plugin generator now ensures that the project’s `composer.json` file has `minimum-stability: dev` and `prefer-stable: true` set. ([#22](https://github.com/craftcms/generator/issues/22)) diff --git a/src/generators/Service.php b/src/generators/Service.php index 08ffab1..83d5c3a 100644 --- a/src/generators/Service.php +++ b/src/generators/Service.php @@ -128,7 +128,7 @@ public static function config(): array ``` 'modules' => [ '{$this->module->id}' => [ - 'class' => \\$moduleClass::class, + 'class' => $moduleClass::class, 'components' => [ '$this->componentId' => $serviceClass::class, ],