Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个关于 Symfony2 异常的“简单问题”。以下是问题的描述。我将TokenNotFoundException(或AccessDeniedException)扔到控制器中。如果抛出该异常,则框架会自动重定向到登录页面。
提前致谢。
问题 1 的答案:
查看Symfony\Component\Security\Http\Firewall\ExceptionListener类。onKernelException方法完成了这项工作......