Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit bd8e02e

Browse files
committed
added MaskBuilderRetrievalInterface
1 parent c73aae2 commit bd8e02e

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

Acl/Permission/BasicPermissionMap.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @author Johannes M. Schmitt <[email protected]>
1919
*/
20-
class BasicPermissionMap implements PermissionMapInterface
20+
class BasicPermissionMap implements PermissionMapInterface, MaskBuilderRetrievalInterface
2121
{
2222
const PERMISSION_VIEW = 'VIEW';
2323
const PERMISSION_EDIT = 'EDIT';
@@ -107,9 +107,7 @@ public function contains($permission)
107107
}
108108

109109
/**
110-
* Returns a new instance of the MaskBuilder used in the permissionMap
111-
*
112-
* @return MaskBuilderInterface
110+
* {@inheritdoc}
113111
*/
114112
public function getMaskBuilder()
115113
{
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Security\Acl\Permission;
13+
14+
/**
15+
* Retrieves the MaskBuilder
16+
*/
17+
interface MaskBuilderRetrievalInterface
18+
{
19+
/**
20+
* Returns a new instance of the MaskBuilder used in the permissionMap
21+
*
22+
* @return MaskBuilderInterface
23+
*/
24+
public function getMaskBuilder();
25+
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CHANGELOG
88
* added the triggering of the `Symfony\Component\Security\Http\SecurityEvents::INTERACTIVE_LOGIN` in `Symfony\Component\Security\Http\Firewall\SimplePreAuthenticationListener`
99
* The MaskBuilder logic has been abstracted in the `Symfony\Component\Security\Acl\Permission\AbstractMaskBuilder`
1010
and described in the `Symfony\Component\Security\Acl\Permission\MaskBuilderInterface`
11+
* added interface `Symfony\Component\Security\Acl\Permission\MaskBuilderRetrievalInterface`
1112

1213
2.6.0
1314
-----

0 commit comments

Comments
 (0)