diff --git a/docs/tasks/Development.md b/docs/tasks/Development.md index fcc103dc8..76f370228 100644 --- a/docs/tasks/Development.md +++ b/docs/tasks/Development.md @@ -166,17 +166,17 @@ Runs PHP server and stops it when task finishes. ``` php taskPhpServer(8000) +$this->taskServer(8000) ->dir('public') ->run(); // run with IP 0.0.0.0 -$this->taskPhpServer(8000) +$this->taskServer(8000) ->host('0.0.0.0') ->run(); // execute server in background -$this->taskPhpServer(8000) +$this->taskServer(8000) ->background() ->run(); ?> diff --git a/src/Task/Development/PhpServer.php b/src/Task/Development/PhpServer.php index fe73329e4..cec2fe256 100644 --- a/src/Task/Development/PhpServer.php +++ b/src/Task/Development/PhpServer.php @@ -9,17 +9,17 @@ * ``` php * taskPhpServer(8000) + * $this->taskServer(8000) * ->dir('public') * ->run(); * * // run with IP 0.0.0.0 - * $this->taskPhpServer(8000) + * $this->taskServer(8000) * ->host('0.0.0.0') * ->run(); * * // execute server in background - * $this->taskPhpServer(8000) + * $this->taskServer(8000) * ->background() * ->run(); * ?> @@ -53,4 +53,4 @@ public function getCommand() return sprintf($this->command . $this->arguments, $this->host, $this->port); } -} \ No newline at end of file +}