Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Bukashk0zzz committed Dec 21, 2022
1 parent bddb5ee commit eeedc19
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions README.md
Expand Up @@ -78,20 +78,17 @@ use Bukashk0zzz\FilterBundle\Annotation\FilterAnnotation as Filter;
*/
class User
{
/**
* @Filter("StripTags", options={"allowTags": "br"})
* @Filter("StringTrim")
* @Filter("StripNewlines")
* @var string
*/
#[Filter(parameters: [
'filter' => 'StripTags',
'options' => ['allowTags' => 'br']
])]
#[Filter(parameters: ['filter' => 'StringTrim'])]
#[Filter(parameters: ['filter' => 'StripNewlines'])]
protected $name;

/**
* @Filter("StripTags")
* @Filter("StringTrim")
* @Filter("AppBundle\Filter\MyCustomFilter")
* @var string
*/
#[Filter(parameters: ['filter' => 'StripTags'])]
#[Filter(parameters: ['filter' => 'StringTrim'])]
#[Filter(parameters: ['filter' => 'AppBundle\Filter\MyCustomFilter'])]
protected $about;
}

Expand Down

0 comments on commit eeedc19

Please sign in to comment.