Releases: dereuromark/cakephp-ide-helper
1.16.0
Improvements
- Added routes annotation for new dynamic style (as static setup is deprecated).
Adds the following into routes.php files:
<?php
+/**
+ * @var \Cake\Routing\RouteBuilder $routes
+ */
$routes->...
...
- Make sure virtual fields and relation-based (association) properties are also autocompleted for EntityTask of meta file generator.
... = $entity->get('group_id'); // field $entity->group_id
... = $entity->get('group'); // association $entity->group
1.15.0
Improvements
- Cell autocomplete - thanks to @LordSimal
- Array generics support in doc blocks using
arrayAsGenerics
config. It is disabled by default for BC, but recommended to enable if it fits to your coding standards.
Updates for CakePHP 4.3+:
LocatorAwareTrait::fetchTable()
autocomplete and return type support. Best to use this together with PHPStan extension.
The main advantages of this release and the plugin in general can be used together with PHPStorm IDE, as that one provides the most comprehensive support for meta data.
Note: This plugin is now CakePHP 4.2+ and PHP 7.3+.
1.14.1
Fixes
Fixed up Component annotator to respect configured application namespace (defaults to App
otherwise)
1.14.0
Improvements
- Allow also inherited
loadModel()
annotating.
1.13.0
Improvements
Reusing existing argument sets
If you want to reuse existing argument sets from other tasks, you can now use the ArgumentsSet
value object referencing them within your task:
use IdeHelper\Generator\Directive\ExpectedArguments;
use IdeHelper\ValueObject\ArgumentsSet;
$method = '\\' . static::CLASS_FORMAT_HELPER . '::sidebarLink()';
$list = [
ArgumentsSet::create(FormatIconFontAwesome5Task::SET_ICONS_FONTAWESOME),
];
$directive = new ExpectedArguments($method, 1, $list);
Just make sure those argument sets are actually available, as this is not checked for you.
1.12.0
Improvements
Disabling object collection annotation in templates is now possible using config templateCollectionObject
set to false
This way, if you always pass arrays of Entities for find() or paginate() calls, you can now reflect that.
You can also set a custom FQCN if you need to.
1.11.0
Improvements
Allow using --ci flag on annotate subcommands
1.10.3
Fixes
Fixed WinOS compatibility for Illuminator
1.10.2
Improvements
Skip table classes that have files ending in "Table" in the App\Model\Table namespace without them actually extending the CakePHP ORM Table class.
1.10.1
Improvements
Add (App) controller annotation for components where needed.
This helps to make application-specific controller usage available, e.g. loaded components.