Skip to content

Commit

Permalink
replase with single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Nov 9, 2018
1 parent 296098f commit 9ecac4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
throw new \RuntimeException('Swoole is not installed. See https://github.com/swoole/swoole-src/wiki/Installing');
}
$http = new swoole_http_server($ip, $port);
$http->on("start", function () use ($ip, $port) {
$http->on('start', function () use ($ip, $port) {
echo "Swoole http server is started at http://{$ip}:{$port}" . PHP_EOL;
});
$injector = new AppInjector($name, $context);
/* @var App $app */
$app = $injector->getInstance(App::class);
$http->on("request", function (Request $request, Response $response) use ($app) {
$http->on('request', function (Request $request, Response $response) use ($app) {
if ($app->httpCache->isNotModified($request->header)) {
$app->httpCache->transfer($response);

Expand Down

0 comments on commit 9ecac4d

Please sign in to comment.