| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | class LoggableSubscriber |
||
| 28 | { |
||
| 29 | public function __construct( |
||
| 30 | #[Autowire(service: 'stof_doctrine_extensions.listener.loggable')] |
||
| 31 | private readonly Loggable $loggableListener, |
||
| 32 | private readonly TranslatorInterface $translator, |
||
| 33 | private readonly Security $security |
||
| 34 | ) { |
||
| 35 | } |
||
| 36 | |||
| 37 | public static function getSubscribedEvents(): array |
||
| 41 | ]; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Set the username from the current user api. |
||
| 46 | */ |
||
| 47 | public function onKernelRequest(RequestEvent $event): void |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.