protected function createEmbedViaPath($file)
    {
        /** @var $byteStream \Swift_ByteStream_FileByteStream */
        $byteStream = $this->getManager()->getDI()->get('\Swift_ByteStream_FileByteStream', [$file]);

        /** @var $image \Swift_Image */
        $image = $this->getManager()->getDI()->get('\Swift_Image')
            ->setFile($byteStream);

        return $image;
    }
protected function createEmbedViaPath($file)
    {
        /** @var $byteStream \Swift_ByteStream_FileByteStream */
        $byteStream = $this->getManager()->getDI()->get('\Swift_ByteStream_FileByteStream', [$file]);

        /** @var $image \Swift_Image */
        $image = $this->getManager()->getDI()->get('\Swift_Image')
            ->setFile($byteStream);

        return $image;
    }
protected function createEmbedViaPath ( $ file ) { /** @var $byteStream \Swift_ByteStream_FileByteStream */ $ byteStream = $ this -> getManager ( ) -> getDI ( ) -> get ( '\Swift_ByteStream_FileByteStream' , [ $ file ] ) ; /** @var $image \Swift_Image */ $ image = $ this -> getManager ( ) -> getDI ( ) -> get ( '\Swift_Image' ) -> setFile ( $ byteStream ) ; return $ image ; }
Create a Swift new Image from a filesystem path.

@param string $file

@return \Swift_Image

@see \Swift_Image::fromPath()
Create a Swift new Image from a filesystem path .