Skip to content

Commit f3eb7e5

Browse files
authored
Make private functions protected
This allows extending of the service provider class without having to copy everything over wholesale. (I'm extending the service provider class to load my extended version of the TNTSearch class that slightly alters the search query to use `LIKE '%xxx%'` instead of `LIKE 'xxx%'.)
1 parent a0fb306 commit f3eb7e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TNTSearchScoutServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function boot()
3737
}
3838
}
3939

40-
private function setFuzziness($tnt)
40+
protected function setFuzziness($tnt)
4141
{
4242
$fuzziness = config('scout.tntsearch.fuzziness');
4343
$prefix_length = config('scout.tntsearch.fuzzy.prefix_length');
@@ -51,7 +51,7 @@ private function setFuzziness($tnt)
5151
$tnt->fuzzy_distance = isset($distance) ? $distance : $tnt->fuzzy_distance;
5252
}
5353

54-
private function setAsYouType($tnt)
54+
protected function setAsYouType($tnt)
5555
{
5656
$asYouType = config('scout.tntsearch.asYouType');
5757

0 commit comments

Comments
 (0)