Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d35184

Browse files
committed
Remove the RenameEntryInterface interface
1 parent e9dc82a commit 5d35184

File tree

4 files changed

+12
-24
lines changed

4 files changed

+12
-24
lines changed

src/Symfony/Component/Ldap/Adapter/EntryManagerInterface.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
*
2121
* @author Charles Sarrazin <[email protected]>
2222
* @author Bob van de Vijver <[email protected]>
23+
* @author Kevin Schuurmans <[email protected]>
2324
*/
2425
interface EntryManagerInterface
2526
{
@@ -43,6 +44,15 @@ public function add(Entry $entry);
4344
*/
4445
public function update(Entry $entry);
4546

47+
/**
48+
* Renames an entry on the Ldap server.
49+
*
50+
* @param Entry $entry
51+
* @param string $newRdn
52+
* @param bool $removeOldRdn
53+
*/
54+
public function rename(Entry $entry, $newRdn, $removeOldRdn = true);
55+
4656
/**
4757
* Removes an entry from the Ldap server.
4858
*

src/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Ldap\Adapter\ExtLdap;
1313

1414
use Symfony\Component\Ldap\Adapter\EntryManagerInterface;
15-
use Symfony\Component\Ldap\Adapter\RenameEntryInterface;
1615
use Symfony\Component\Ldap\Entry;
1716
use Symfony\Component\Ldap\Exception\LdapException;
1817
use Symfony\Component\Ldap\Exception\NotBoundException;
@@ -21,7 +20,7 @@
2120
* @author Charles Sarrazin <[email protected]>
2221
* @author Bob van de Vijver <[email protected]>
2322
*/
24-
class EntryManager implements EntryManagerInterface, RenameEntryInterface
23+
class EntryManager implements EntryManagerInterface
2524
{
2625
private $connection;
2726

src/Symfony/Component/Ldap/Adapter/RenameEntryInterface.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Symfony/Component/Ldap/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
-----
66

77
* removed the `LdapClient` class and the `LdapClientInterface`
8+
* removed the `RenameEntryInterface` interface and merged with `EntryManagerInterface`
89

910
3.1.0
1011
-----

0 commit comments

Comments
 (0)