Skip to content

Commit 83ef27d

Browse files
committed
minor #7985 Use of Setters and Getters (martin05)
This PR was submitted for the 3.3 branch but it was merged into the 2.7 branch instead (closes #7985). Discussion ---------- Use of Setters and Getters If I have already define getter for the $targetDir, I should use it. Commits ------- 789ed43 Use of Setters and Getters
2 parents cd8b892 + 789ed43 commit 83ef27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/upload_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ logic to a separate service::
243243
{
244244
$fileName = md5(uniqid()).'.'.$file->guessExtension();
245245

246-
$file->move($this->targetDir, $fileName);
246+
$file->move($this->getTargetDir(), $fileName);
247247

248248
return $fileName;
249249
}

0 commit comments

Comments
 (0)