Skip to content

Commit

Permalink
improve class docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
YSaxon committed Oct 27, 2023
1 parent 3489765 commit c7b2c14
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Sandbox/MemberMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7b2c14

Please sign in to comment.