Skip to content

Commit

Permalink
Merge pull request consolidation#138 from stevewest/patch-1
Browse files Browse the repository at this point in the history
Update php server examples
  • Loading branch information
burzum committed Mar 12, 2015
2 parents fb4d6eb + 69053c8 commit 4b42173
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/tasks/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,17 @@ Runs PHP server and stops it when task finishes.
``` php
<?php
// run server in /public directory
$this->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();
?>
Expand Down
8 changes: 4 additions & 4 deletions src/Task/Development/PhpServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
* ``` php
* <?php
* // run server in /public directory
* $this->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();
* ?>
Expand Down Expand Up @@ -53,4 +53,4 @@ public function getCommand()
return sprintf($this->command . $this->arguments, $this->host, $this->port);
}

}
}

0 comments on commit 4b42173

Please sign in to comment.