CacheWarmer/LdapToolsCacheWarmer.php
public function warmUp($cacheDir)
    {
        $domain = $this->ldap->getDomainContext();
        foreach ($this->config->getDomainConfiguration() as $domainConfig) {
            $this->ldap->switchDomain($domainConfig->getDomainName());
            $schemaFactory = $this->ldap->getSchemaFactory();
            $parser = $this->ldap->getSchemaParser();
            $schema = empty($domainConfig->getSchemaName()) ? $domainConfig->getLdapType() : $domainConfig->getSchemaName();
            $ldapObjects = $parser->parseAll($schema);

            $this->cacheAllLdapSchemaObjects($schemaFactory, ...$ldapObjects);
        }
        $this->ldap->switchDomain($domain);
    }
public function warmUp($cacheDir)
    {
        $domain = $this->ldap->getDomainContext();
        foreach ($this->config->getDomainConfiguration() as $domainConfig) {
            $this->ldap->switchDomain($domainConfig->getDomainName());
            $schemaFactory = $this->ldap->getSchemaFactory();
            $parser = $this->ldap->getSchemaParser();
            $schema = empty($domainConfig->getSchemaName()) ? $domainConfig->getLdapType() : $domainConfig->getSchemaName();
            $ldapObjects = $parser->parseAll($schema);

            $this->cacheAllLdapSchemaObjects($schemaFactory, ...$ldapObjects);
        }
        $this->ldap->switchDomain($domain);
    }
{@inheritdoc}