mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-03 18:38:31 +03:00
Add "visitorTrack" event
This commit is contained in:
parent
049dff0952
commit
09411a4b32
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
namespace Mibew\Controller;
|
namespace Mibew\Controller;
|
||||||
|
|
||||||
|
use Mibew\EventDispatcher;
|
||||||
use Mibew\Settings;
|
use Mibew\Settings;
|
||||||
use Mibew\Thread;
|
use Mibew\Thread;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
@ -79,6 +80,11 @@ class WidgetController extends AbstractController
|
|||||||
$response_data['data']['user']['id'] = $visitor['userid'];
|
$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
|
// Get invitation state
|
||||||
$invitation_state = invitation_state($visitor_id);
|
$invitation_state = invitation_state($visitor_id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user