Skip to content

Commit

Permalink
use generatorTasks key
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Sep 5, 2017
1 parent 1df5339 commit d017cb9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config/app.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
],
// Always add annotations even if not needed
'preemptive' => false,
// For meta file generator
'generatorTasks' => [
],
],
];
2 changes: 1 addition & 1 deletion docs/Generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MyTask implements TaskInterface {
Then add it to the config:
```php
'IdeHelper' => [
'tasks' => [
'generatorTasks' => [
App\Generator\Task\MyTask::class,
],
],
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/TaskCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TaskCollection {
*/
public function __construct(array $tasks = []) {
if (!$tasks) {
$configTasks = (array)Configure::read('IdeHelper.tasks');
$configTasks = (array)Configure::read('IdeHelper.generatorTasks');
$tasks = array_merge($this->defaultTasks, $configTasks);
}

Expand Down

0 comments on commit d017cb9

Please sign in to comment.