From 60b7dd765ce9d54ac4916f52086ef52e7045dff2 Mon Sep 17 00:00:00 2001 From: iarro <56431174+iarro@users.noreply.github.com> Date: Mon, 14 Oct 2019 15:29:30 +0200 Subject: [PATCH] fixed scope example --- components/ldap.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ldap.rst b/components/ldap.rst index 50b7eb5b917..73963d5f243 100644 --- a/components/ldap.rst +++ b/components/ldap.rst @@ -101,15 +101,15 @@ array, you may use the // Do something with the results array -By default, LDAP queries use the ``Symfony\Component\Ldap\Adapter::SCOPE_SUB`` +By default, LDAP queries use the ``Symfony\Component\Ldap\Adapter\QueryInterface::SCOPE_SUB`` scope, which corresponds to the ``LDAP_SCOPE_SUBTREE`` scope of the :phpfunction:`ldap_search` function. You can also use ``SCOPE_BASE`` (related to the ``LDAP_SCOPE_BASE`` scope of :phpfunction:`ldap_read`) and ``SCOPE_ONE`` (related to the ``LDAP_SCOPE_ONELEVEL`` scope of :phpfunction:`ldap_list`):: - use Symfony\Component\Ldap\Adapter; + use Symfony\Component\Ldap\Adapter\QueryInterface; - $query = $ldap->query('dc=symfony,dc=com', '...', ['scope' => Adapter::SCOPE_ONE]); + $query = $ldap->query('dc=symfony,dc=com', '...', ['scope' => QueryInterface::SCOPE_ONE]); Creating or Updating Entries ----------------------------