public function replaceAll(Text $text, $pattern, $replacement)
    {
        $input = array(
            'text' => $text,
            'pattern' => $pattern,
            'replacement' => $replacement,
        );
        $this->commandInvoker->run('replace_all', $input);
    }