Skip to content

Commit

Permalink
changes to be compatible with Robo 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Aug 31, 2016
1 parent 9725994 commit f2260a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/GettextScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use RegexIterator;
use Robo\Task\BaseTask;
use Robo\Contract\TaskInterface;
use Robo\Result;

/**
* Trait to scan files to get gettext entries.
Expand All @@ -21,7 +22,7 @@ trait GettextScanner
*/
protected function taskGettextScanner()
{
return new TaskGettextScanner();
return $this->task(TaskGettextScanner::class);
}
}

Expand Down Expand Up @@ -116,6 +117,8 @@ public function run()
$this->printTaskInfo("Gettext exported to {$target}");
}
}

return Result::success($this, 'All gettext generated successfuly!');
}

/**
Expand Down

0 comments on commit f2260a8

Please sign in to comment.