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, ],