herrera-io/service-process

A service provider for Symfony Process.

1.1.2 2013-05-02 17:13 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