handle($request); } catch (AccessDeniedException $ade) { if (!User::findCurrent()) { throw new LoginException(); } throw $ade; } } }