ソースを参照

comment container

master
コミット
6a3e83f489
1個のファイルの変更4行の追加4行の削除
  1. 4
    4
      public/index.php

+ 4
- 4
public/index.php ファイルの表示

@@ -14,10 +14,10 @@ $container = new Container();
AppFactory::setContainer($container);
$app = AppFactory::create();

$container->set('db', function() {
$db = new myDB();
return $db;
});
// $container->set('db', function() {
// $db = new myDB();
// return $db;
// });

$app->map(['GET', 'POST'], "/orders/{client}/create", function (Request $request, Response $response, array $args) {
if ($request->getMethod() == "GET") {

読み込み中…
キャンセル
保存