Skip to content

Commit

Permalink
Merge branch 'release/1.11.1' into v1
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jul 3, 2023
2 parents 157f6a7 + ac6f635 commit 72f1928
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@

All notable changes to this project will be documented in this file.

## 1.11.1 - 2023.07.03
### Fixed
* Fixed an issue in which the plugin was instantiating Twig before Craft was fully initialized.

## 1.11.0 - 2022.12.19
### Changed
* Refactored how CraftVariable Behaviors are parsed to use PHP Reflection so we can get all methods & properties added via behavior to the CraftVariable. Allows `commerce.orders()` to work, for example ([#10](https://github.com/nystudio107/craft-autocomplete/issues/10))
* Refactored how CraftVariable Behaviors are parsed to use PHP Reflection so we can get all methods & properties added via behavior to the CraftVariable. Allows `craft.orders()` to work, for example ([#10](https://github.com/nystudio107/craft-autocomplete/issues/10))

## 1.10.1 - 2022.08.23
### Changed
* Add `allow-plugins` to `composer.json` so CI can work
* Added `allow-plugins` to `composer.json` so CI can work

### Fixed
* Fixed an issue where an exception could be thrown during the bootstrap process in earlier versions of Yii2 due to `$id` not being set
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-autocomplete",
"description": "Provides Twig template IDE autocomplete of Craft CMS & plugin variables",
"type": "yii2-extension",
"version": "1.11.0",
"version": "1.11.1",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/Autocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function registerEventHandlers()
Event::on(Plugins::class, Plugins::EVENT_AFTER_INSTALL_PLUGIN, [$this, 'regenerateAutocompleteClasses']);
Event::on(Plugins::class, Plugins::EVENT_AFTER_UNINSTALL_PLUGIN, [$this, 'deleteAutocompleteClasses']);
Event::on(Globals::class, Globals::EVENT_AFTER_SAVE_GLOBAL_SET, [$this, 'deleteAutocompleteClasses']);
Event::on(Plugins::class, Plugins::EVENT_AFTER_LOAD_PLUGINS, [$this, 'generateAutocompleteClasses']);
Event::on(CraftWebApp::class, CraftWebApp::EVENT_INIT, [$this, 'generateAutocompleteClasses']);
Craft::info('Event Handlers installed', __METHOD__);
}

Expand Down

0 comments on commit 72f1928

Please sign in to comment.