Skip to content

Instantly share code, notes, and snippets.

View 11k's full-sized avatar
😵‍💫

11k

😵‍💫
  • Los Angeles, California
  • 20:15 (UTC -08:00)
View GitHub Profile
@11k
11k / IpTraceSubscriber.php
Last active March 23, 2023 15:47
Using IpTraceable Doctrine Extension with Symfony 5.4
// src/EventSubscriber/IpTraceSubscriber.php
<?php
namespace App\EventSubscriber;
use Gedmo\IpTraceable\IpTraceableListener;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\KernelEvents;