Skip to content

Commit 4726493

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/ldap.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ scope, which corresponds to the ``LDAP_SCOPE_SUBTREE`` scope of the
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\ExtLdap\Query;
111111

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

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

0 commit comments

Comments
 (0)