Skip to content

Commit

Permalink
Refactor Sample command
Browse files Browse the repository at this point in the history
- SampleCommands.php extracted from WillowCommands.php as a standalone task command.
- `eject` removes SampleCommands.php
  • Loading branch information
RyanNerd committed Jun 13, 2021
1 parent 0e19b97 commit 39cad73
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/Robo/Plugin/Commands/WillowCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,6 @@ final public function docs(): void {
$this->taskOpenBrowser('https://www.notion.so/ryannerd/Get-Started-bf56317580884ccd95ed8d3889f83c72')->run();
}

/**
* Launch the built-in PHP server and load the Sample in a web browser
*/
final public function sample(): void {
$this->taskServer(8088)
->host('127.0.0.1')
->dir(__DIR__ . '/../../../../public')
->background()
->run();
$this->taskOpenBrowser('http://localhost:8088/v1/sample/Hello-World')->run();
sleep(15);
}

/**
* Show Willow's fancy banner
*/
Expand Down

0 comments on commit 39cad73

Please sign in to comment.