ProcessPipes::close()

close() Closes file handles and pipes.

ProcessPipes::closeUnixPipes()

closeUnixPipes() Closes Unix pipes. Nothing happens in case file handles are used.

Processor::process()

array process(NodeInterface $configTree, array $configs) Processes an array of configurations. Parameters NodeInterface $configTree The node tree describing the configuration array $configs An array of configuration items to process Return Value array The processed configuration

Processor::normalizeConfig()

static array normalizeConfig(array $config, string $key, string $plural = null) Normalizes a configuration entry. This method returns a normalize configuration array for a given key to remove the differences due to the original format (YAML and XML mainly). Here is an example. The configuration in XML: twig.extension.footwig.extension.bar And the same configuration in YAML: extensions: ['twig.extension.foo', 'twig.extension.bar'] Parameters array $config A config arr

ProcessHelper::wrapCallback()

callable wrapCallback(OutputInterface $output, Process $process, callable $callback = null) Wraps a Process callback to add debugging output. Parameters OutputInterface $output An OutputInterface interface Process $process The Process callable $callback A PHP callable Return Value callable

Processor::processConfiguration()

array processConfiguration(ConfigurationInterface $configuration, array $configs) Processes an array of configurations. Parameters ConfigurationInterface $configuration The configuration class array $configs An array of configuration items to process Return Value array The processed configuration

Processor

class Processor This class is the entry point for config normalization/merging/finalization. Methods array process(NodeInterface $configTree, array $configs) Processes an array of configurations. array processConfiguration(ConfigurationInterface $configuration, array $configs) Processes an array of configurations. static array normalizeConfig(array $config, string $key, string $plural = null) Normalizes a configuration entry. Details array proces

ProcessHelper::getName()

string getName() Returns the canonical name of this helper. Return Value string The canonical name

ProcessHelper::run()

Process run(OutputInterface $output, string|array|Process $cmd, string|null $error = null, callable $callback = null, int $verbosity = OutputInterface::VERBOSITY_VERY_VERBOSE) Runs an external process. Parameters OutputInterface $output An OutputInterface instance string|array|Process $cmd An instance of Process or an array of arguments to escape and run or a command to run string|null $error An error message that must be displayed if something went wrong callable $callback A

ProcessHelper::mustRun()

Process mustRun(OutputInterface $output, string|Process $cmd, string|null $error = null, callable $callback = null) Runs the process. This is identical to run() except that an exception is thrown if the process exits with a non-zero exit code. Parameters OutputInterface $output An OutputInterface instance string|Process $cmd An instance of Process or a command to run string|null $error An error message that must be displayed if something went wrong callable $callback A PHP ca