Skip to content

Commit

Permalink
fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
KorsaR-ZN committed Dec 18, 2015
1 parent 4591ed0 commit 466b405
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -764,15 +764,16 @@ protected function createEmbedViaPath($file)
* Create a Swift new Image.
*
* @param string $data
* @param string|null $name optional
* @param string|null $filename
* @param string|null $contentType
*
* @return \Swift_Image
*
* @see \Swift_Image::newInstance()
*/
protected function createEmbedViaData($data, $name = null)
protected function createEmbedViaData($data, $filename = null, $contentType = null)
{
return $this->getManager()->getDI()->get('\Swift_Image', [$data, $name]);
return $this->getManager()->getDI()->get('\Swift_Image', [$data, $filename, $contentType]);
}

/**
Expand Down

0 comments on commit 466b405

Please sign in to comment.