Command/ExecuteProcessCommand.php
protected function parseContextValues(InputInterface $input)
    {
        $parser = new Parser();

        $pattern = '/([\w]+):(.*)/';
        $contextValues = $input->getOption('context');
        $context = [];
        foreach ($contextValues as $contextValue) {
            preg_match($pattern, $contextValue, $parts);
            if (3 !== \count($parts)
                || $parts[0] !== $contextValue) {
                throw new \InvalidArgumentException(sprintf('Invalid context %s', $contextValue));
            }
            $context[$parts[1]] = $parser->parse($parts[2]);
        }

        return $context;
    }
protected function parseContextValues(InputInterface $input)
    {
        $parser = new Parser();

        $pattern = '/([\w]+):(.*)/';
        $contextValues = $input->getOption('context');
        $context = [];
        foreach ($contextValues as $contextValue) {
            preg_match($pattern, $contextValue, $parts);
            if (3 !== \count($parts)
                || $parts[0] !== $contextValue) {
                throw new \InvalidArgumentException(sprintf('Invalid context %s', $contextValue));
            }
            $context[$parts[1]] = $parser->parse($parts[2]);
        }

        return $context;
    }
@param InputInterface $input

@throws \Symfony\Component\Console\Exception\InvalidArgumentException

@return array