Skip to content

Commit 627539e

Browse files
committed
minor #9464 Fixed some variable names (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Fixed some variable names Fixes #9449 differently. Commits ------- 5510f59 Fixed some variable names
2 parents db079c4 + 5510f59 commit 627539e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controller/upload_file.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Then, define a service for this class:
271271
272272
AppBundle\Service\FileUploader:
273273
arguments:
274-
$targetDir: '%brochures_directory%'
274+
$targetDirectory: '%brochures_directory%'
275275
276276
.. code-block:: xml
277277
@@ -294,7 +294,7 @@ Then, define a service for this class:
294294
use AppBundle\Service\FileUploader;
295295
296296
$container->autowire(FileUploader::class)
297-
->setArgument('$targetDir', '%brochures_directory%');
297+
->setArgument('$targetDirectory', '%brochures_directory%');
298298
299299
Now you're ready to use this service in the controller::
300300

@@ -452,7 +452,7 @@ controller.
452452
}
453453

454454
if ($fileName = $entity->getBrochure()) {
455-
$entity->setBrochure(new File($this->uploader->getTargetDir().'/'.$fileName));
455+
$entity->setBrochure(new File($this->uploader->getTargetDirectory().'/'.$fileName));
456456
}
457457
}
458458
}

0 commit comments

Comments
 (0)