File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Css/PreProcessor/Adapter/Less Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -94,19 +94,22 @@ public function processContent(AssetFile $asset)
94
94
*/
95
95
protected function compileFile ($ filePath )
96
96
{
97
- $ process = new Process ([
98
- $ this ->getPathToNodeBinary (),
99
- ...$ this ->getNodeArgsAsArray (),
100
- $ this ->getPathToLessCompiler (),
101
- ...$ this ->getCompilerArgsAsArray (),
102
- $ filePath ,
103
- ]);
97
+ $ nodeCmdArgs = $ this ->getNodeArgsAsArray ();
98
+ $ lessCmdArgs = $ this ->getCompilerArgsAsArray ();
104
99
100
+ $ command = [];
101
+ $ command [] = $ this ->getPathToNodeBinary ();
102
+ $ command = array_merge ($ command , $ nodeCmdArgs );
103
+ $ command [] = $ this ->getPathToLessCompiler ();
104
+ $ command = array_merge ($ command , $ lessCmdArgs );
105
+ $ command [] = $ filePath ;
106
+
107
+ $ process = new Process ($ command );
105
108
$ process ->run ();
106
109
107
110
if (!$ process ->isSuccessful ()) {
108
111
$ error = sprintf (
109
- 'The command "%s" failed. ' . "\n\nExit Code: %s(%s) \n\nWorking directory: %s " ,
112
+ 'The command "%s" failed. ' . "\n\nExit Code: %s(%s) \n\nWorking directory: %s " ,
110
113
$ process ->getCommandLine (),
111
114
$ process ->getExitCode (),
112
115
$ process ->getExitCodeText (),
You can’t perform that action at this time.
0 commit comments