LdapTools\Configuration::getSchemaFormat PHP Method

getSchemaFormat() public method

Get the schema definition format.
public getSchemaFormat ( ) : string
return string
    public function getSchemaFormat()
    {
        return $this->config['schemaFormat'];
    }

Usage Example

 function let(LdapConnectionInterface $connection)
 {
     $config = (new DomainConfiguration('example.com'))->setSchemaName('example');
     $connection->getConfig()->willReturn($config);
     $config = new Configuration();
     $parserTest = SchemaParserFactory::get($config->getSchemaFormat(), __DIR__ . '/../resources/schema');
     $parser = SchemaParserFactory::get($config->getSchemaFormat(), __DIR__ . '/../../resources/schema');
     $cache = CacheFactory::get('none', []);
     $this->dispatcherTest = new SymfonyEventDispatcher();
     $this->dispatcher = new SymfonyEventDispatcher();
     $this->objectSchemaFactoryTest = new LdapObjectSchemaFactory($cache, $parserTest, $this->dispatcherTest);
     $this->objectSchemaFactory = new LdapObjectSchemaFactory($cache, $parser, $this->dispatcher);
     $this->beConstructedWith($connection, $this->objectSchemaFactory, $this->dispatcher);
 }
All Usage Examples Of LdapTools\Configuration::getSchemaFormat