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 5f57337 commit 84ec6bdCopy full SHA for 84ec6bd
src/Config/Events.php
@@ -0,0 +1,8 @@
1
+<?php namespace Tatter\Visits\Config;
2
+
3
+use CodeIgniter\Events\Events;
4
+use CodeIgniter\Config\Services;
5
6
+Events::on('post_controller_constructor', function () {
7
+ Services::visits()->record();
8
+});
0 commit comments