Skip to content

Commit

Permalink
Simplify code thanks to new options API
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Sep 12, 2017
1 parent acf4c39 commit 6faad63
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/JsPhpize/JsPhpizePhug.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ public function __construct(ModuleContainerInterface $container)
//Apply options from container
$this->setOptionsRecursive($compiler->getOption(['module_options', 'jsphpize']));

$formatter = $compiler->getFormatter();
$formatter->setOptionsRecursive([
$compiler->setOptionsRecursive([
'patterns' => [
'transform_expression' => function ($jsCode) use ($compiler, $formatter) {
'transform_expression' => function ($jsCode) use ($compiler) {

/** @var JsPhpize $jsPhpize */
$jsPhpize = $compiler->getOption('jsphpize_engine');
Expand Down

0 comments on commit 6faad63

Please sign in to comment.