This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/HttpKernel
Fabien Potencier f0f83a9f6e merged branch stof/exception_listener (PR #1633)
Commits
-------

11369eb Fixed phpdoc
dbe1854 Added a AccessDeniedHttpException to wrap the AccessDeniedException.

Discussion
----------

Added a AccessDeniedHttpException to wrap the AccessDeniedException.

This is a proposal to fix #1631

It wraps the AccessDeniedException in an AccessDeniedHttpException when the firewall is not able to handle it itself. This allows getting a 403 response using the standard exception listener in this case.

Note that the app should not throw the AccessDeniedHttpException itself but keep using the AccessDeniedException to let the Security component check if the user is already fully authenticated or if it should give a chance to authenticate.

---------------------------------------------------------------------------

by fabpot at 2011/07/11 07:10:12 -0700

For reference, I've tried something more radical some time ago here: https://github.com/symfony/symfony/pull/369.

---------------------------------------------------------------------------

by stof at 2011/07/11 07:22:07 -0700

my implementation is what @schmittjoh suggested in the comments on your PR.
2011-07-11 17:02:32 +02:00
..
Bundle [HttpKernel] allowed bundle names to have 'bundle' in their base name 2011-04-28 08:55:43 +02:00
CacheWarmer [FrameworkBundle] refactored the cache:clear command 2011-03-21 11:03:55 +01:00
Config [Phpdoc] Cleaning/fixing 2011-04-23 15:18:47 +00:00
Controller [HttpKernel] fixed a crash on some machines (check that the controller is actually a class name before calling method_exists, closes #769) 2011-06-15 17:23:14 +02:00
DataCollector added more information about a resource in error and debug messages 2011-06-20 10:16:09 +02:00
Debug [HttpKernel] fixed exception handler when an exception is thrown during handling 2011-07-07 12:24:58 +02:00
DependencyInjection [HttpKernel] Adding small example of how the extension alias is auto-generated 2011-06-13 17:16:49 -05:00
Event added more information about a resource in error and debug messages 2011-06-20 10:16:09 +02:00
EventListener [HttpKernel] removed special case when using the CLI 2011-07-11 16:13:15 +02:00
Exception Fixed phpdoc 2011-07-11 14:08:49 +02:00
HttpCache moved some RFC-tweaking logic in Response to a public method to make it reusable 2011-07-11 11:22:12 +02:00
Log Replace optionNal to optional 2011-06-21 21:18:10 +04:00
Profiler fixed CS 2011-06-23 14:07:53 +02:00
Util [HttpKernel] added Filesystem::isAbsolutePath() 2011-05-31 11:04:23 +02:00
Client.php [HttpFoundation] code factorization in UploadedFile 2011-07-07 10:47:10 +02:00
HttpKernel.php Renamed core.* events to kernel.* and CoreEvents to KernelEvents 2011-06-21 16:35:14 +02:00
HttpKernelInterface.php [HttpKernel] made some minor tweaks 2011-04-24 08:44:29 +02:00
Kernel.php bumped version to RC5-DEV 2011-07-04 22:45:04 +02:00
KernelEvents.php Renamed core.* events to kernel.* and CoreEvents to KernelEvents 2011-06-21 16:35:14 +02:00
KernelInterface.php merged vicb/kernel 2011-03-16 21:30:23 +01:00
LICENSE added LICENSE files for the subtree repositories 2011-02-22 18:58:15 +01:00