Skip to content

Commit

Permalink
MAGETWO-64085: [GitHub] Static versioning and styles minification bre…
Browse files Browse the repository at this point in the history
…ak email fonts styles #8241

- fix adapter dependency not add collaborator in constructor to 3rd party libraries
  • Loading branch information
cpartica committed Aug 24, 2017
1 parent 8733f8c commit ff986bd
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -4,21 +4,22 @@
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Css\PreProcessor\Adapter;

use Pelago\Emogrifier;

/**
* Adapter for Emogrifier 3rd party library
*/
class CssInliner
{
/**
* @var Emogrifier
*/
private $emogrifier;

/**
* @param Emogrifier $emogrifier
*/
public function __construct(Emogrifier $emogrifier)
public function __construct()
{
$this->emogrifier = $emogrifier;
$this->emogrifier = new Emogrifier;
}

/**
Expand Down

0 comments on commit ff986bd

Please sign in to comment.