summaryrefslogtreecommitdiffstats
path: root/Role/RoleHierarchyInterface.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2010-10-19 13:06:43 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2010-10-19 13:33:17 +0200
commit3fec93d3ff1f6a31f078e5558a15a75539bf5185 (patch)
tree1a6229643289d9d0ca55871bab9497035a6e49f1 /Role/RoleHierarchyInterface.php
downloadsymfony-security-3fec93d3ff1f6a31f078e5558a15a75539bf5185.zip
symfony-security-3fec93d3ff1f6a31f078e5558a15a75539bf5185.tar.gz
symfony-security-3fec93d3ff1f6a31f078e5558a15a75539bf5185.tar.bz2
added the Security Component and its integration into the MVC framework
Happy birthday symfony!
Diffstat (limited to 'Role/RoleHierarchyInterface.php')
-rw-r--r--Role/RoleHierarchyInterface.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/Role/RoleHierarchyInterface.php b/Role/RoleHierarchyInterface.php
new file mode 100644
index 0000000..b93a93c
--- /dev/null
+++ b/Role/RoleHierarchyInterface.php
@@ -0,0 +1,33 @@
+<?php
+
+namespace Symfony\Component\Security\Role;
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+/**
+ * RoleHierarchyInterface is the interface for a role hierarchy.
+ *
+ * @author Fabien Potencier <fabien.potencier@symfony-project.com>
+ */
+interface RoleHierarchyInterface
+{
+ /**
+ * Returns an array of all reachable roles.
+ *
+ * Reachable roles are the roles directly assigned but also all
+ * roles that are transitively reachable from them in the role
+ * hierarchy.
+ *
+ * @param array $roles An array of directly assigned roles
+ *
+ * @return array An array of all reachable roles
+ */
+ public function getReachableRoles(array $roles);
+}