From 16b3a759375ccd3e7c8a5b7f950e90dc32aae780 Mon Sep 17 00:00:00 2001 From: Philipp Scheit Date: Tue, 3 Mar 2015 11:34:26 +0100 Subject: [PATCH] add documentation for replacing multiple values in a file at once --- src/Task/File/Replace.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Task/File/Replace.php b/src/Task/File/Replace.php index b88567fd3..031e201ee 100644 --- a/src/Task/File/Replace.php +++ b/src/Task/File/Replace.php @@ -23,6 +23,11 @@ * ->regex('~^service:~') * ->to('services:') * ->run(); + * + * $this->taskReplaceInFile('box/robo.txt') + * ->from(array('##dbname##', 'robo')) + * ->to(array('##dbhost## ', 'localhost')) + * ->run(); * ?> * ``` *