Skip to content

Commit

Permalink
Merge pull request #20006 from angrybrad/master
Browse files Browse the repository at this point in the history
Fixed a bug with the yii serve command and a custom router
  • Loading branch information
bizley authored Oct 14, 2023
2 parents 4fe40f9 + 9875ae6 commit 5a4c048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/console/controllers/ServeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function actionIndex($address = 'localhost')
}
$this->stdout("Quit the server with CTRL-C or COMMAND-C.\n");

passthru('"' . PHP_BINARY . '"' . " -S {$address} -t \"{$documentRoot}\" $router");
passthru('"' . PHP_BINARY . '"' . " -S {$address} -t \"{$documentRoot}\" \"$router\"");
}

/**
Expand Down

0 comments on commit 5a4c048

Please sign in to comment.