-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from ChadSikorra/v1-start_the_changelog
[1.0.0] Start a changelog / upgrade doc for version 1.0.0 changes.
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Upgrading from 0.x to 1.0 | ||
======================= | ||
|
||
Client Options | ||
-------------- | ||
|
||
When instantiating the `LdapClient`, options are now an options object instead of an associative array. | ||
|
||
**Before**: | ||
|
||
```php | ||
use FreeDSx\Ldap\LdapClient; | ||
|
||
$ldap = new LdapClient([ | ||
# Servers are tried in order until one connects | ||
'servers' => ['dc1', 'dc2'], | ||
# The base_dn is used as the default for searches | ||
'base_dn' => 'dc=example,dc=local' | ||
]); | ||
``` | ||
|
||
**After**: | ||
|
||
```php | ||
use FreeDSx\Ldap\LdapClient; | ||
use FreeDSx\Ldap\ClientOptions; | ||
|
||
$ldap = new LdapClient( | ||
(new ClientOptions) | ||
# Servers are tried in order until one connects | ||
->setServers(['dc1', 'dc2']) | ||
# The base_dn is used as the default for searches | ||
->setBaseDn('dc=example,dc=local') | ||
); | ||
``` | ||
|
||
Server Options | ||
-------------- | ||
|
||
When instantiating the `LdapServer`, options are now an options object instead of an associative array. | ||
|
||
**Before**: | ||
|
||
```php | ||
use FreeDSx\Ldap\LdapServer; | ||
|
||
$ldap = new LdapServer([ | ||
'dse_alt_server' => 'dc2.local', | ||
'port' => 33389, | ||
]); | ||
``` | ||
|
||
**After**: | ||
|
||
```php | ||
use FreeDSx\Ldap\LdapServer; | ||
use FreeDSx\Ldap\ServerOptions; | ||
|
||
$ldap = new LdapServer( | ||
(new ServerOptions) | ||
->setDseAltServer('dc2.local') | ||
->setPort(33389) | ||
); | ||
``` |