Skip to content

Commit d5607f5

Browse files
committed
updated MelodyPlugin to match new method signature.
1 parent 51cb012 commit d5607f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/MelodyPlugin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Symfony\Component\Process\Process;
66
use SensioLabs\Melody\Resource\ResourceParser;
77
use Symfony\Component\Process\ExecutableFinder;
8+
use SensioLabs\Melody\Configuration\UserConfiguration;
89

910
/**
1011
* Class which integrates melody scripts into the php-console.
@@ -37,7 +38,8 @@ public function runScript($__source_code, $__bootstrap_file)
3738
$_ENV['COMPOSER_HOME'] = $tmpDir;
3839

3940
$melody = new Melody();
40-
$configuration = new RunConfiguration(/*true, true*/);
41+
$runConfiguration = new RunConfiguration(/*true, true*/);
42+
$userConfiguration = new UserConfiguration();
4143
$executor = function (Process $process, $verbose)
4244
{
4345
$callback = function ($type, $text)
@@ -60,6 +62,6 @@ public function runScript($__source_code, $__bootstrap_file)
6062
@unlink($tmpFile);
6163
});
6264
file_put_contents($tmpFile, $__source_code);
63-
$melody->run($tmpFile, array(), $configuration, $executor);
65+
$melody->run($tmpFile, array(), $runConfiguration, $userConfiguration, $executor);
6466
}
6567
}

0 commit comments

Comments
 (0)