useNet\Bazzline\Component\ProcessPipe\ExecutableException;
useNet\Bazzline\Component\ProcessPipe\InvalidArgumentException;
useNet\Bazzline\Component\ProcessPipe\Pipe;
try {
$pipe = new Pipe(
new ProcessOne(),
new ProcessTwo()
);
$output = $pipe->execute($input);
} catch (ExecutableException) {
//handle process exception
} catch (InvalidArgumentException) {
//handle pipe exception
}
useNet\Bazzline\Component\ProcessPipe\ExecutableException;
useNet\Bazzline\Component\ProcessPipe\InvalidArgumentException;
useNet\Bazzline\Component\ProcessPipe\Pipe;
try {
$pipe = new Pipe(
new ProcessOne(),
new ProcessTwo()
);
$pipe->pipe(new ProcessThree());
$pipe->pipe(
new ProcessFour(),
new ProcessFive()
);
$output = $pipe->execute($input);
} catch (ExecutableException) {
//handle process exception
} catch (InvalidArgumentException) {
//handle pipe exception
}
bash
composer check
./vendor/bin/rector process
./vendor/bin/php-cs-fixer fix example
./vendor/bin/php-cs-fixer fix source
./vendor/bin/php-cs-fixer fix test
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.