Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d9c56c7

Browse filesBrowse files
committed
Merge branch '4.3' into 4.4
* 4.3: fixed scope example
2 parents 8cd0661 + b823ec3 commit d9c56c7
Copy full SHA for d9c56c7

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎components/ldap.rst

Copy file name to clipboardExpand all lines: components/ldap.rst
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.