LdapTools\DomainConfiguration::setBindFormat PHP Метод

setBindFormat() публичный Метод

Set the format a username should be bound as.
public setBindFormat ( string $bindFormat )
$bindFormat string
    public function setBindFormat($bindFormat)
    {
        $this->config['bindFormat'] = $bindFormat;
        return $this;
    }

Usage Example

 function it_should_use_a_custom_format_definition()
 {
     $config = new DomainConfiguration('example.local');
     $config->setBindFormat('%username%');
     $this->beConstructedThrough('getInstance', [$config]);
     $this->getUsername('foo')->shouldBeEqualTo('foo');
 }
All Usage Examples Of LdapTools\DomainConfiguration::setBindFormat