55use Symfony \Component \Process \Process ;
66use SensioLabs \Melody \Resource \ResourceParser ;
77use 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