-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,11 @@ | |
namespace Twig\Sandbox; | ||
|
||
/** | ||
* Allows for flexible wildcard supported member and property matching in Security Policies. | ||
* | ||
* Allows for flexible wildcard support in allowedMethods and allowedProperties in SecurityPolicy. | ||
* - Class can be specified as wildcard `* => [...]` in order to allow those methods/properties for all classes. | ||
* - Method/property can be specified as wildcard eg. `\DateTime => '*'` in order to allow all methods/properties for that class. | ||
* - Method/property can also be specified with a trailing wildcard to allow all methods/properties with a certain prefix, eg. `\DateTime => ['get*', ...]` in order to allow all methods/properties that start with `get`. | ||
* | ||
* @author Yaakov Saxon <[email protected]> | ||
*/ | ||
final class MemberMatcher | ||
|