File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -258,38 +258,6 @@ instead::
258
258
);
259
259
$process->run();
260
260
261
- To make your code work better on all platforms, you might want to use the
262
- :class: `Symfony\\ Component\\ Process\\ ProcessBuilder ` class instead::
263
-
264
- use Symfony\Component\Process\ProcessBuilder;
265
-
266
- $builder = new ProcessBuilder(array('ls', '-lsa'));
267
- $builder->getProcess()->run();
268
-
269
- In case you are building a binary driver, you can use the
270
- :method: `Symfony\\ Component\\ Process\\ ProcessBuilder::setPrefix ` method to prefix all
271
- the generated process commands.
272
-
273
- The following example will generate two process commands for a tar binary
274
- adapter::
275
-
276
- use Symfony\Component\Process\ProcessBuilder;
277
-
278
- $builder = new ProcessBuilder();
279
- $builder->setPrefix('/usr/bin/tar');
280
-
281
- // '/usr/bin/tar' '--list' '--file=archive.tar.gz'
282
- echo $builder
283
- ->setArguments(array('--list', '--file=archive.tar.gz'))
284
- ->getProcess()
285
- ->getCommandLine();
286
-
287
- // '/usr/bin/tar' '-xzf' 'archive.tar.gz'
288
- echo $builder
289
- ->setArguments(array('-xzf', 'archive.tar.gz'))
290
- ->getProcess()
291
- ->getCommandLine();
292
-
293
261
Process Timeout
294
262
---------------
295
263
You can’t perform that action at this time.
0 commit comments