File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 3838 },
3939 "scripts" : {
4040 "lint" :" " ,
41- "serve-dev" :" ENVIRONMENT=development php -S \" ${HOST:-localhost}:${PORT:-8080}\" -t web/ web/index.php" ,
41+ "serve-dev" :" USER=alice PASSWORD=alice123 ENVIRONMENT=development php -S \" ${HOST:-localhost}:${PORT:-8080}\" -t web/ web/index.php" ,
4242 "serve-dev-docker" :" bash ./bin/serve-docker-dev.sh" ,
4343 "test" :" phpunit"
4444 },
Original file line number Diff line number Diff line change 1616use League \Route \Http \Exception \NotFoundException ;
1717use League \Route \Router ;
1818use League \Route \Strategy \ApplicationStrategy ;
19+ use Pdsinterop \Solid \Controller \LoginController ;
1920use Pdsinterop \Solid \Controller \AddSlashToPathController ;
2021use Pdsinterop \Solid \Controller \HelloWorldController ;
2122use Pdsinterop \Solid \Controller \HttpToHttpsController ;
3435);
3536$ strategy = new ApplicationStrategy ();
3637
38+ session_start ();
3739$ router = new Router ();
3840
3941/*/ Wire objects together /*/
7072});
7173
7274$ controllers = [
75+ LoginController::class,
7376 AddSlashToPathController::class,
7477 CardController::class,
7578 HelloWorldController::class,
114117$ router ->map ('GET ' , '/ ' , HelloWorldController::class)->setScheme ($ scheme );
115118
116119/*/ Create URI groups /*/
120+ $ router ->map ('POST ' , '/login ' , LoginController::class)->setScheme ($ scheme );
117121$ router ->map ('GET ' , '/profile ' , AddSlashToPathController::class)->setScheme ($ scheme );
118122$ router ->map ('GET ' , '/profile/ ' , ProfileController::class)->setScheme ($ scheme );
119123$ router ->map ('GET ' , '/profile/card ' , CardController::class)->setScheme ($ scheme );
You can’t perform that action at this time.
0 commit comments