herrera-io/service-process

This package is abandoned and no longer maintained. No replacement package was suggested.

A service provider for Symfony Process.

1.1.2 2013-05-02 17:13 UTC

This package is not auto-updated.

Last update: 2021-12-07 01:35:47 UTC


README

Build Status

Process Service Provider registers the Symfony Process builder as a service for the Herrera.io service container. Also included is a simplified process builder.

use Herrera\Service\Container;
use Herrera\Service\Process\ProcessServiceProvider;

$container = new Container();
$container->register(new ProcessServiceProvider());

$process = $container['process']('echo');
$process
    ->arg('Hello, ')
    ->arg('Guest!')
    ->output($process->stream(STDOUT))
    ->run();

Documentation