Skip to content

Commit 2bfabc8

Browse files
authored
fixed scope example
1 parent 4726493 commit 2bfabc8

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\ExtLdap\Query;
110+
use Symfony\Component\Ldap\Adapter\QueryInterface;
111111

112-
$query = $ldap->query('dc=symfony,dc=com', '...', ['scope' => Query::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)