added MaskBuilderRetrievalInterface
This commit is contained in:
parent
89a1f2a94e
commit
3d79d8b438
@ -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()
|
||||
{
|
||||
|
@ -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();
|
||||
}
|
@ -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
|
||||
-----
|
||||
|
Reference in New Issue
Block a user