So I wanted to use my listener to only extend the class if we are on a certain page. Now I know I can use the $GLOBALS['fc'] object to do it, but it makes me cringe a bit doing it that way.
Is there some static function for getting the current controller I'm missing?
This works, but... blah... lol
if ($GLOBALS['fc']->route()->getControllerName() === 'XenForo_ControllerPublic_Thread') ...