Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Remove mention in UPGRADE to Filter subcomponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Feb 12, 2016
1 parent 3ba6e50 commit 5a8927c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions UPGRADE-3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,3 @@ UPGRADE FROM 2.0 to 3.0
service:
ldap_driver: fr3d_ldap.ldap_driver.legacy # Remove this line.
```

* If you was using `Converter` class or `LdapManagerInterface::escapeValue(string|array)`:
Before:
```php
$values = [$valueA, $valueB];
$values = FR3D\LdapBundle\Ldap\LdapManager::escapeValue($values);
```

After:
```php
$filter = new FR3D\LdapBundle\Ldap\Filter\FilterValue();
$values = [$valueA, $valueB];
foreach($values as $key => $unescapedValue) {
$values[$key] = $filter->filter($unescapedValue);
}
```

0 comments on commit 5a8927c

Please sign in to comment.