Reuse JiraController factory for other services

[MAILPOET-1977]
This commit is contained in:
Jan Jakeš
2019-04-23 12:35:18 +02:00
committed by M. Shull
parent f9b7ece35e
commit 09d1f2cd99
3 changed files with 4 additions and 15 deletions

View File

@@ -15,10 +15,6 @@ class ReleaseVersionController {
$this->project = $project;
}
static function createWithJiraCredentials($token, $user, $project) {
return new self(new JiraController($token, $user, $project), $project);
}
function assignVersionToCompletedTickets($version = null) {
$version = $this->ensureCorrectVersion($version);
if (!$version) {