LdapTools\Configuration::getSchemaFolder PHP Method

getSchemaFolder() public method

Get the location where the schema definitions exist.
public getSchemaFolder ( ) : string
return string
    public function getSchemaFolder()
    {
        return $this->config['schemaFolder'];
    }

Usage Example

 function let(LdapConnectionInterface $connection, LdapObject $rootdse)
 {
     $domain = new DomainConfiguration('example.local');
     $domain->setUseTls(true);
     $connection->getConfig()->willReturn($domain);
     $connection->getRootDse()->willReturn($rootdse);
     $config = new Configuration();
     $this->parser = new SchemaYamlParser($config->getSchemaFolder());
     $this->schema = $this->parser->parse('ad', 'user');
 }
All Usage Examples Of LdapTools\Configuration::getSchemaFolder