We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a08806f commit 150ddf6Copy full SHA for 150ddf6
composer.json
@@ -13,6 +13,6 @@
13
},
14
"require": {
15
"vlucas/phpdotenv": "^5.0",
16
- "thecodeholic/php-mvc-core": "^v1.0.3"
+ "thecodeholic/php-mvc-core": "^v1.0.4"
17
}
18
public/index.php
@@ -24,6 +24,10 @@
24
25
$app = new Application(dirname(__DIR__), $config);
26
27
+$app->on(Application::EVENT_BEFORE_REQUEST, function(){
28
+ echo "Before request from second installation";
29
+});
30
+
31
$app->router->get('/', [SiteController::class, 'home']);
32
$app->router->get('/register', [SiteController::class, 'register']);
33
$app->router->post('/register', [SiteController::class, 'register']);
0 commit comments