summaryrefslogtreecommitdiffstats
path: root/Http/Authorization/AccessDeniedHandlerInterface.php
diff options
context:
space:
mode:
authorJohannes Schmitt <schmittjoh@gmail.com>2011-01-27 08:34:19 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2011-01-27 13:49:00 +0100
commit09b461182284fe277c7c5c2a511dd71f280db765 (patch)
tree3407f9e48f4e0487a53b42d4fd0005f9fb2768a6 /Http/Authorization/AccessDeniedHandlerInterface.php
parentbebc09870cb0a7720e2c6a8c5c74585e69e8bb24 (diff)
downloadsymfony-security-09b461182284fe277c7c5c2a511dd71f280db765.zip
symfony-security-09b461182284fe277c7c5c2a511dd71f280db765.tar.gz
symfony-security-09b461182284fe277c7c5c2a511dd71f280db765.tar.bz2
added some doc comments
Diffstat (limited to 'Http/Authorization/AccessDeniedHandlerInterface.php')
-rw-r--r--Http/Authorization/AccessDeniedHandlerInterface.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/Http/Authorization/AccessDeniedHandlerInterface.php b/Http/Authorization/AccessDeniedHandlerInterface.php
new file mode 100644
index 0000000..7a1bcf4
--- /dev/null
+++ b/Http/Authorization/AccessDeniedHandlerInterface.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Symfony\Component\Security\Http\Authorization;
+
+use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\EventDispatcher\EventInterface;
+use Symfony\Component\Security\Core\Exception\AccessDeniedException;
+
+/**
+ * This is used by the ExceptionListener to translate an AccessDeniedException
+ * to a Response object.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+interface AccessDeniedHandlerInterface
+{
+ /**
+ * Handles an access denied failure.
+ *
+ * @param EventInterface $event
+ * @param Request $request
+ * @param AccessDeniedException $accessDeniedException
+ *
+ * @return Response may return null
+ */
+ function handle(EventInterface $event, Request $request, AccessDeniedException $accessDeniedException);
+} \ No newline at end of file