Published by dereuromark about 7 years ago
Added a CodeCompletion shell on top of the existing ones to allow a more generic IDE support from now on.
You can generate a basic file that any IDE should understand. With this you can provide correct typehinting now for a lot of magic properties and methods that so far haven't worked.
See the documentation on details - and on how to write your own custom (project/plugin) tasks on top!
Give it a try - and let me know in the Wiki or via PR (pull request) if your IDE works out or what might still be missing.
MCGA - Make CakePHP Great Again! :)
Published by dereuromark about 7 years ago
Generator:
Generator:
preemptive
option enabled it will now also fetch and add all custom finders to auto-completion.Annotator:
Published by dereuromark about 7 years ago
Added even more IDE auto-completion for various magic strings:
'all'
, 'list'
, 'threaded'
etcFurther:
Published by dereuromark about 7 years ago
Added IDE auto-completion for
Also now allows to customize or skip certain native generator tasks.
Published by dereuromark about 7 years ago
Fixed output of annotator. Count of added lines is now shown correctly.
Published by dereuromark about 7 years ago
Also annotate the dynamic model factory calls:
$this->loadModel('Users')
$this->getTableLocator()->get('Users')
Published by dereuromark about 7 years ago
Use own error code (2) for CI and dry-run.
Published by dereuromark about 7 years ago
Added meta file generation for PHPStorm that allows static factory method calls to be typehinted.
For now mainly TableRegistry::get(...)
calls are supported out of the box.
You can also easily add your own custom tasks to be used for the generation of this file.
Published by dereuromark about 7 years ago
Allow App helpers to be added by default
Published by dereuromark about 7 years ago
Careful: This is still an alpha feature and experimental. Please backup everything before using -r
flag and/or use -d
(dry run) preview.
Often times you have a custom mapping of e.g. JSON, array or mediumtext/longtext columns in your DB.
The Bake plugin does not handle them all currently.
With the custom map config typeMap
you can specify anything (and also overwrite the current IdeHelper defaults). If you want to unset, just set the value to false
for a specific key.
preemptive
config option has been added to be more pre-annotative especially in View templates.-r
flag.Published by dereuromark about 7 years ago
Normalize the diff output on CLI.
Published by dereuromark about 7 years ago
Added support for pagination annotations in Controllers.
This follows recent changes in Bake plugin that also does this.
Published by dereuromark about 7 years ago
Allow for global phpcs installation to work well with this plugin.
Published by dereuromark about 7 years ago
Allow for new diff major.
Published by dereuromark over 7 years ago
IdeHelper.prefixes
.Published by dereuromark over 7 years ago
Code modification relies on the PHP token parsing/updating of the PHP_CodeSniffer tool.
Published by dereuromark over 7 years ago
Published by dereuromark over 7 years ago
$this->Form->create($entity, ...)
for template annotationsPublished by dereuromark over 7 years ago
Fix controllers and their component annotations
Published by dereuromark over 7 years ago