File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11
11
use BotMan \BotMan \Messages \Attachments \Image ;
12
12
use BotMan \BotMan \Messages \Attachments \Video ;
13
13
use BotMan \BotMan \Messages \Outgoing \Question ;
14
- use Symfony \Component \HttpFoundation \File \UploadedFile ;
15
14
use Symfony \Component \HttpFoundation \Request ;
16
15
use Symfony \Component \HttpFoundation \Response ;
17
16
use BotMan \BotMan \Messages \Incoming \IncomingMessage ;
18
17
use BotMan \BotMan \Messages \Outgoing \OutgoingMessage ;
18
+ use Symfony \Component \HttpFoundation \File \UploadedFile ;
19
19
20
20
class WebDriver extends HttpDriver
21
21
{
@@ -228,6 +228,7 @@ protected function addAttachments($incomingMessage)
228
228
} else {
229
229
$ path = $ file ['tmp_name ' ];
230
230
}
231
+
231
232
return new Image ($ this ->getDataURI ($ path ));
232
233
})->values ()->toArray ();
233
234
$ incomingMessage ->setText (Image::PATTERN );
@@ -239,6 +240,7 @@ protected function addAttachments($incomingMessage)
239
240
} else {
240
241
$ path = $ file ['tmp_name ' ];
241
242
}
243
+
242
244
return new Audio ($ this ->getDataURI ($ path ));
243
245
})->values ()->toArray ();
244
246
$ incomingMessage ->setText (Audio::PATTERN );
@@ -250,6 +252,7 @@ protected function addAttachments($incomingMessage)
250
252
} else {
251
253
$ path = $ file ['tmp_name ' ];
252
254
}
255
+
253
256
return new Video ($ this ->getDataURI ($ path ));
254
257
})->values ()->toArray ();
255
258
$ incomingMessage ->setText (Video::PATTERN );
You can’t perform that action at this time.
0 commit comments