Initial 2.0 commit

This commit is contained in:
Tom Lingham
2015-02-18 23:10:59 +11:00
parent 1c648b81c7
commit 6678381a58
28 changed files with 34 additions and 38 deletions

4
src/TomLingham/Searchy/Facades/Searchy.php Normal file → Executable file
View File

@ -1,6 +1,5 @@
<?php namespace TomLingham\Searchy\Facades;
use TomLingham\Searchy\SearchyServiceProvider;
use Illuminate\Support\Facades\Facade;
/**
@ -15,9 +14,6 @@ class Searchy extends Facade
*/
protected static function getFacadeAccessor()
{
if (!static::$app)
static::$app = SearchyServiceProvider::make();
return 'searchy';
}
}

0
src/TomLingham/Searchy/Interfaces/MatcherInterface.php Normal file → Executable file
View File

View File

0
src/TomLingham/Searchy/Matchers/AcronymMatcher.php Normal file → Executable file
View File

0
src/TomLingham/Searchy/Matchers/BaseMatcher.php Normal file → Executable file
View File

View File

0
src/TomLingham/Searchy/Matchers/ExactMatcher.php Normal file → Executable file
View File

0
src/TomLingham/Searchy/Matchers/InStringMatcher.php Normal file → Executable file
View File

0
src/TomLingham/Searchy/Matchers/LevenshteinMatcher.php Normal file → Executable file
View File

View File

View File

0
src/TomLingham/Searchy/Matchers/StudlyCaseMatcher.php Normal file → Executable file
View File

View File

6
src/TomLingham/Searchy/SearchBuilder.php Normal file → Executable file
View File

@ -1,9 +1,9 @@
<?php namespace TomLingham\Searchy;
use Illuminate\Support\Facades\Config;
use TomLingham\Searchy\SearchDrivers\FuzzySearchDriver;
/**
* @property mixed driverName
*/
@ -84,12 +84,12 @@ class SearchBuilder {
if ( $this->driverName ){
$driverName = $this->driverName;
} else {
$driverName = \Config::get('searchy::default');
$driverName = Config::get('searchy::default');
}
// Gets the details for the selected driver from the configuration file
$driverMap = \Config::get("searchy::drivers.$driverName");
$driverMap = Config::get("searchy::drivers.$driverName");
// Create a new instance of the selected drivers 'class' and pass

View File

View File

View File

View File

0
src/TomLingham/Searchy/SearchyServiceProvider.php Normal file → Executable file
View File

0
src/config/config.php Normal file → Executable file
View File

0
src/res/levenshtein.sql Normal file → Executable file
View File