herrera-io/service-process

A service provider for Symfony Process.

Installs: 138

Dependents: 1

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

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