From 21960adb3412ed22db50641a57c46b18e1f4fcff Mon Sep 17 00:00:00 2001 From: thamer belfkih Date: Mon, 19 Mar 2018 11:23:46 +0100 Subject: [PATCH] change targetDirectory to targetDir the argument name passed for the FileUploader service class is not the same inside the service.yml file --- controller/upload_file.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controller/upload_file.rst b/controller/upload_file.rst index c31c9f96bd9..91280c2f2f0 100644 --- a/controller/upload_file.rst +++ b/controller/upload_file.rst @@ -237,11 +237,11 @@ logic to a separate service:: class FileUploader { - private $targetDirectory; + private $targetDir; - public function __construct($targetDirectory) + public function __construct($targetDir) { - $this->targetDirectory = $targetDirectory; + $this->targetDir = $targetDir; } public function upload(UploadedFile $file) @@ -255,7 +255,7 @@ logic to a separate service:: public function getTargetDirectory() { - return $this->targetDirectory; + return $this->targetDir; } }