Skip to content

Commit 969459f

Browse files
committed
minor #13421 Fix $slugger call (nlemoine)
This PR was merged into the 5.0 branch. Discussion ---------- Fix $slugger call Commits ------- ea6470d Fix $slugger call
2 parents dc69db9 + ea6470d commit 969459f

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
@@ -255,7 +255,7 @@ logic to a separate service::
255255
public function upload(UploadedFile $file)
256256
{
257257
$originalFilename = pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME);
258-
$safeFilename = $slugger->slug($originalFilename);
258+
$safeFilename = $this->slugger->slug($originalFilename);
259259
$fileName = $safeFilename.'-'.uniqid().'.'.$file->guessExtension();
260260

261261
try {

0 commit comments

Comments
 (0)