Skip to content

Commit bd29752

Browse files
committed
Merge branch '4.4'
* 4.4: fixed scope example
2 parents 68485a2 + d9c56c7 commit bd29752

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/ldap.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ array, you may use the
101101

102102
// Do something with the results array
103103

104-
By default, LDAP queries use the ``Symfony\Component\Ldap\Adapter::SCOPE_SUB``
104+
By default, LDAP queries use the ``Symfony\Component\Ldap\Adapter\QueryInterface::SCOPE_SUB``
105105
scope, which corresponds to the ``LDAP_SCOPE_SUBTREE`` scope of the
106106
:phpfunction:`ldap_search` function. You can also use ``SCOPE_BASE`` (related
107107
to the ``LDAP_SCOPE_BASE`` scope of :phpfunction:`ldap_read`) and ``SCOPE_ONE``
108108
(related to the ``LDAP_SCOPE_ONELEVEL`` scope of :phpfunction:`ldap_list`)::
109109

110-
use Symfony\Component\Ldap\Adapter;
110+
use Symfony\Component\Ldap\Adapter\QueryInterface;
111111

112-
$query = $ldap->query('dc=symfony,dc=com', '...', ['scope' => Adapter::SCOPE_ONE]);
112+
$query = $ldap->query('dc=symfony,dc=com', '...', ['scope' => QueryInterface::SCOPE_ONE]);
113113

114114
Creating or Updating Entries
115115
----------------------------

0 commit comments

Comments
 (0)