src/LdapTools/Factory/LdapObjectSchemaFactory.php
public function get($schemaName, $objectType)
    {
        $key = CacheItem::TYPE['SCHEMA_OBJECT'].'.'.$schemaName.'.'.$objectType;

        if ($this->shouldBuildCacheItem($key, $schemaName)) {
            $ldapObjectSchema = $this->parser->parse($schemaName, $objectType);
            $this->dispatcher->dispatch(new LdapObjectSchemaEvent(Event::LDAP_SCHEMA_LOAD, $ldapObjectSchema));
            $this->cache->set(new CacheItem($key, $ldapObjectSchema));
        } else {
            $ldapObjectSchema = $this->cache->get($key)->getValue();
        }

        return $ldapObjectSchema;
    }
public function get($schemaName, $objectType)
    {
        $key = CacheItem::TYPE['SCHEMA_OBJECT'].'.'.$schemaName.'.'.$objectType;

        if ($this->shouldBuildCacheItem($key, $schemaName)) {
            $ldapObjectSchema = $this->parser->parse($schemaName, $objectType);
            $this->dispatcher->dispatch(new LdapObjectSchemaEvent(Event::LDAP_SCHEMA_LOAD, $ldapObjectSchema));
            $this->cache->set(new CacheItem($key, $ldapObjectSchema));
        } else {
            $ldapObjectSchema = $this->cache->get($key)->getValue();
        }

        return $ldapObjectSchema;
    }
public function get ( $ schemaName , $ objectType ) { $ key = CacheItem :: TYPE [ 'SCHEMA_OBJECT' ] . '.' . $ schemaName . '.' . $ objectType ; if ( $ this -> shouldBuildCacheItem ( $ key , $ schemaName ) ) { $ ldapObjectSchema = $ this -> parser -> parse ( $ schemaName , $ objectType ) ; $ this -> dispatcher -> dispatch ( new LdapObjectSchemaEvent ( Event :: LDAP_SCHEMA_LOAD , $ ldapObjectSchema ) ) ; $ this -> cache -> set ( new CacheItem ( $ key , $ ldapObjectSchema ) ) ; } else { $ ldapObjectSchema = $ this -> cache -> get ( $ key ) -> getValue ( ) ; } return $ ldapObjectSchema ; }
Get the LdapObjectSchema for a specific schema name and object type.

@param string $schemaName
@param string $objectType
@return LdapObjectSchema
Get the LdapObjectSchema for a specific schema name and object type .