public function replaceAll(Text $text, $pattern, $replacement)
    {
        $input = array(
            'text' => $text,
            'pattern' => $pattern,
            'replacement' => $replacement,
        );
        $this->commandInvoker->run('replace_all', $input);
    }
public function replaceAll(Text $text, $pattern, $replacement)
    {
        $input = array(
            'text' => $text,
            'pattern' => $pattern,
            'replacement' => $replacement,
        );
        $this->commandInvoker->run('replace_all', $input);
    }
public function replaceAll ( Text $ text , $ pattern , $ replacement ) { $ input = array ( 'text' => $ text , 'pattern' => $ pattern , 'replacement' => $ replacement , ) ; $ this -> commandInvoker -> run ( 'replace_all' , $ input ) ; }
Replaces all the occurences which match the given pattern with the given
replacement.

@param Text   $text
@param string $pattern
@param string $replacement

@api
Replaces all the occurences which match the given pattern with the given replacement .