Skip to content

Commit da80c6b

Browse files
committed
Use the new compiler_modules option name
1 parent abaf904 commit da80c6b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/JsPhpize/JsPhpizePhug.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313

1414
class JsPhpizePhug extends AbstractCompilerModule
1515
{
16-
public function __construct(ModuleContainerInterface $compiler)
16+
public function __construct(ModuleContainerInterface $container)
1717
{
18-
parent::__construct($compiler);
18+
parent::__construct($container);
1919

2020
/* @var Compiler $compiler */
21+
$compiler = $container;
2122

2223
//Make sure we can retrieve the module options from the container
2324
$compiler->setOptionsRecursive([

tests/JsPhpize/JsPhpizePhugTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class JsPhpizePhugTest extends \PHPUnit_Framework_TestCase
1111
public function testPlug()
1212
{
1313
$compiler = new Compiler([
14-
'modules' => [JsPhpizePhug::class],
14+
'compiler_modules' => [JsPhpizePhug::class],
1515
]);
1616

1717
self::assertSame(
@@ -20,7 +20,7 @@ public function testPlug()
2020
);
2121

2222
$compiler = new Compiler([
23-
'modules' => [JsPhpizePhug::class],
23+
'compiler_modules' => [JsPhpizePhug::class],
2424
]);
2525

2626
ob_start();
@@ -54,7 +54,7 @@ public function testPlug()
5454
);
5555

5656
$compiler = new Compiler([
57-
'modules' => [JsPhpizePhug::class],
57+
'compiler_modules' => [JsPhpizePhug::class],
5858
]);
5959

6060
self::assertSame(
@@ -63,7 +63,7 @@ public function testPlug()
6363
);
6464

6565
$compiler = new Compiler([
66-
'modules' => [JsPhpizePhug::class],
66+
'compiler_modules' => [JsPhpizePhug::class],
6767
]);
6868

6969
self::assertSame(
@@ -75,7 +75,7 @@ public function testPlug()
7575
public function testTruncatedCode()
7676
{
7777
$compiler = new Compiler([
78-
'modules' => [JsPhpizePhug::class],
78+
'compiler_modules' => [JsPhpizePhug::class],
7979
]);
8080

8181
$compiler->setOption('jsphpize_engine', new JsPhpize([

0 commit comments

Comments
 (0)