mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-03 10:28:32 +03:00
Add "visitorTrack" event
This commit is contained in:
parent
049dff0952
commit
09411a4b32
@ -17,6 +17,7 @@
|
||||
|
||||
namespace Mibew\Controller;
|
||||
|
||||
use Mibew\EventDispatcher;
|
||||
use Mibew\Settings;
|
||||
use Mibew\Thread;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
@ -79,6 +80,11 @@ class WidgetController extends AbstractController
|
||||
$response_data['data']['user']['id'] = $visitor['userid'];
|
||||
}
|
||||
|
||||
// Provide an ability for others to make something on visitor
|
||||
// tracking
|
||||
$event_arguments = array('visitor' => $visitor);
|
||||
EventDispatcher::getInstance()->triggerEvent('visitorTrack', $event_arguments);
|
||||
|
||||
// Get invitation state
|
||||
$invitation_state = invitation_state($visitor_id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user