| 1 | <?php |
||
| 9 | class AlgoliaFactory |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Makes a new Algolia Client. |
||
| 13 | * |
||
| 14 | * @param AlgoliaConfig $config |
||
| 15 | * |
||
| 16 | 29 | * @return AlgoliaManager |
|
| 17 | * |
||
| 18 | 29 | * @throws \Exception |
|
| 19 | 29 | */ |
|
| 20 | 29 | public function make(AlgoliaConfig $config) |
|
| 33 | 2 | ||
| 34 | /** |
||
| 35 | 2 | * Returns a new instance for given class which must implement the SearchableInterface. |
|
| 36 | 1 | * |
|
| 37 | * @param string $className |
||
| 38 | * |
||
| 39 | 1 | * @return SearchableInterface |
|
| 40 | * |
||
| 41 | * @throws \InvalidArgumentException |
||
| 42 | */ |
||
| 43 | public function makeSearchableObject($className) |
||
| 51 | } |
||
| 52 |