github dereuromark/cakephp-ide-helper 1.13.0

latest releases: 2.5.3, 2.5.2, 2.5.1...
3 years ago

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.

Don't miss a new cakephp-ide-helper release

NewReleases is sending notifications on new releases.