From 9ecac4de65cab291661db6f64cf5381910f0833f Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sat, 10 Nov 2018 02:52:31 +0900 Subject: [PATCH] replase with single quote --- bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index a57b376..e277f1c 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -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);