Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update php server eamples #138

Merged
merged 2 commits into from
Mar 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}

}
}