Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 9007721

Browse files
committed
Make config methods public
1 parent 1ded06d commit 9007721

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

src/Auth/Resolver.php

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ public function authenticate(User $user, array $credentials = [])
6969
}
7070

7171
/**
72-
* Returns a new Adldap user query.
73-
*
74-
* @return Builder
72+
* {@inheritdoc}
7573
*/
7674
public function query()
7775
{
@@ -89,21 +87,17 @@ public function query()
8987
}
9088

9189
/**
92-
* Retrieves the configured LDAP users username attribute.
93-
*
94-
* @return string
90+
* {@inheritdoc}
9591
*/
96-
protected function getLdapUsername()
92+
public function getLdapUsername()
9793
{
9894
return config('adldap_auth.usernames.ldap', 'userprincipalname');
9995
}
10096

10197
/**
102-
* Retrieves the configured eloquent users username attribute.
103-
*
104-
* @return string
98+
* {@inheritdoc}
10599
*/
106-
protected function getEloquentUsername()
100+
public function getEloquentUsername()
107101
{
108102
return config('adldap_auth.usernames.eloquent', 'email');
109103
}

src/Auth/ResolverInterface.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,18 @@ public function authenticate(User $user, array $credentials = []);
5858
* @return \Adldap\Query\Builder
5959
*/
6060
public function query();
61+
62+
/**
63+
* Retrieves the configured LDAP users username attribute.
64+
*
65+
* @return string
66+
*/
67+
public function getLdapUsername();
68+
69+
/**
70+
* Retrieves the configured eloquent users username attribute.
71+
*
72+
* @return string
73+
*/
74+
public function getEloquentUsername();
6175
}

0 commit comments

Comments
 (0)