Skip to content

Commit 0c9cd43

Browse files
committed
Quick cleanup
1 parent 962e65a commit 0c9cd43

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cSpell.words": [
3+
"Diactoros"
4+
]
5+
}

module-1/server/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
$responseFactory = new Laminas\Diactoros\ResponseFactory;
1010

1111
$strategy = new League\Route\Strategy\JsonStrategy($responseFactory);
12-
$router = (new League\Route\Router)->setStrategy($strategy);
12+
$router = new League\Route\Router;
13+
$router->setStrategy($strategy);
1314

1415
$router->group('/notes', function(\League\Route\RouteGroup $router) {
1516
$router->get('/', 'Notes\Module1\Server::getNotes');

0 commit comments

Comments
 (0)