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 1111use BotMan \BotMan \Messages \Attachments \Image ;
1212use BotMan \BotMan \Messages \Attachments \Video ;
1313use BotMan \BotMan \Messages \Outgoing \Question ;
14- use Symfony \Component \HttpFoundation \File \UploadedFile ;
1514use Symfony \Component \HttpFoundation \Request ;
1615use Symfony \Component \HttpFoundation \Response ;
1716use BotMan \BotMan \Messages \Incoming \IncomingMessage ;
1817use BotMan \BotMan \Messages \Outgoing \OutgoingMessage ;
18+ use Symfony \Component \HttpFoundation \File \UploadedFile ;
1919
2020class WebDriver extends HttpDriver
2121{
@@ -228,6 +228,7 @@ protected function addAttachments($incomingMessage)
228228 } else {
229229 $ path = $ file ['tmp_name ' ];
230230 }
231+
231232 return new Image ($ this ->getDataURI ($ path ));
232233 })->values ()->toArray ();
233234 $ incomingMessage ->setText (Image::PATTERN );
@@ -239,6 +240,7 @@ protected function addAttachments($incomingMessage)
239240 } else {
240241 $ path = $ file ['tmp_name ' ];
241242 }
243+
242244 return new Audio ($ this ->getDataURI ($ path ));
243245 })->values ()->toArray ();
244246 $ incomingMessage ->setText (Audio::PATTERN );
@@ -250,6 +252,7 @@ protected function addAttachments($incomingMessage)
250252 } else {
251253 $ path = $ file ['tmp_name ' ];
252254 }
255+
253256 return new Video ($ this ->getDataURI ($ path ));
254257 })->values ()->toArray ();
255258 $ incomingMessage ->setText (Video::PATTERN );
You can’t perform that action at this time.
0 commit comments