src/Leevel/Pipeline/Pipeline.php
protected function parse(string $stage): array
    {
        list($name, $args) = array_pad(explode(':', $stage, 2), 2, []);

        if (is_string($args)) {
            $args = explode(',', $args);
        }

        $args = array_map(function (string $item) {
            return ctype_digit($item) ? (int) $item : $item;
        }, $args);

        return [$name, $args];
    }
protected function parse(string $stage): array
    {
        list($name, $args) = array_pad(explode(':', $stage, 2), 2, []);

        if (is_string($args)) {
            $args = explode(',', $args);
        }

        $args = array_map(function (string $item) {
            return ctype_digit($item) ? (int) $item : $item;
        }, $args);

        return [$name, $args];
    }
解析工序.

@param string $stage

@return array