Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 150ddf6

Browse files
Update core and add event listener
1 parent a08806f commit 150ddf6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
},
1414
"require": {
1515
"vlucas/phpdotenv": "^5.0",
16-
"thecodeholic/php-mvc-core": "^v1.0.3"
16+
"thecodeholic/php-mvc-core": "^v1.0.4"
1717
}
1818
}

‎public/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424

2525
$app = new Application(dirname(__DIR__), $config);
2626

27+
$app->on(Application::EVENT_BEFORE_REQUEST, function(){
28+
echo "Before request from second installation";
29+
});
30+
2731
$app->router->get('/', [SiteController::class, 'home']);
2832
$app->router->get('/register', [SiteController::class, 'register']);
2933
$app->router->post('/register', [SiteController::class, 'register']);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /