summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Dupuy <alex.dpy@gmail.com>2015-03-20 23:35:10 +0100
committerAlexandre Dupuy <alex.dpy@gmail.com>2015-03-20 23:35:10 +0100
commitbd8e02ed91963286945652377ce8064252a42dd0 (patch)
treebf24af69d296b04f3e56149f607c5ad9053d2854
parentc73aae247e4b6d1c3eb3415fb47855867677f948 (diff)
downloadsymfony-security-bd8e02ed91963286945652377ce8064252a42dd0.zip
symfony-security-bd8e02ed91963286945652377ce8064252a42dd0.tar.gz
symfony-security-bd8e02ed91963286945652377ce8064252a42dd0.tar.bz2
added MaskBuilderRetrievalInterface
-rw-r--r--Acl/Permission/BasicPermissionMap.php6
-rw-r--r--Acl/Permission/MaskBuilderRetrievalInterface.php25
-rw-r--r--CHANGELOG.md1
3 files changed, 28 insertions, 4 deletions
diff --git a/Acl/Permission/BasicPermissionMap.php b/Acl/Permission/BasicPermissionMap.php
index f7335ce..fa5437d 100644
--- a/Acl/Permission/BasicPermissionMap.php
+++ b/Acl/Permission/BasicPermissionMap.php
@@ -17,7 +17,7 @@ namespace Symfony\Component\Security\Acl\Permission;
*
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
*/
-class BasicPermissionMap implements PermissionMapInterface
+class BasicPermissionMap implements PermissionMapInterface, MaskBuilderRetrievalInterface
{
const PERMISSION_VIEW = 'VIEW';
const PERMISSION_EDIT = 'EDIT';
@@ -107,9 +107,7 @@ class BasicPermissionMap implements PermissionMapInterface
}
/**
- * Returns a new instance of the MaskBuilder used in the permissionMap
- *
- * @return MaskBuilderInterface
+ * {@inheritdoc}
*/
public function getMaskBuilder()
{
diff --git a/Acl/Permission/MaskBuilderRetrievalInterface.php b/Acl/Permission/MaskBuilderRetrievalInterface.php
new file mode 100644
index 0000000..7a99bca
--- /dev/null
+++ b/Acl/Permission/MaskBuilderRetrievalInterface.php
@@ -0,0 +1,25 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Security\Acl\Permission;
+
+/**
+ * Retrieves the MaskBuilder
+ */
+interface MaskBuilderRetrievalInterface
+{
+ /**
+ * Returns a new instance of the MaskBuilder used in the permissionMap
+ *
+ * @return MaskBuilderInterface
+ */
+ public function getMaskBuilder();
+}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2d0e84c..052f883 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ CHANGELOG
* added the triggering of the `Symfony\Component\Security\Http\SecurityEvents::INTERACTIVE_LOGIN` in `Symfony\Component\Security\Http\Firewall\SimplePreAuthenticationListener`
* The MaskBuilder logic has been abstracted in the `Symfony\Component\Security\Acl\Permission\AbstractMaskBuilder`
and described in the `Symfony\Component\Security\Acl\Permission\MaskBuilderInterface`
+ * added interface `Symfony\Component\Security\Acl\Permission\MaskBuilderRetrievalInterface`
2.6.0
-----