mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 22:01:33 +00:00
29 lines
740 B
PHP
29 lines
740 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Facades;
|
|
|
|
use Elasticsearch\Client;
|
|
use Illuminate\Support\Facades\Facade;
|
|
|
|
/**
|
|
* Elasticsearch Facade - provides static access to Elasticsearch client.
|
|
*
|
|
* @method static \Elasticsearch\Namespaces\IndicesNamespace indices()
|
|
* @method static \Elasticsearch\Namespaces\ClusterNamespace cluster()
|
|
* @method static array search(array $params)
|
|
* @method static array bulk(array $params)
|
|
* @method static array get(array $params)
|
|
* @method static array deleteByQuery(array $params)
|
|
*
|
|
* @see Client
|
|
*/
|
|
class Elasticsearch extends Facade // @phpstan-ignore missingType.iterableValue
|
|
{
|
|
protected static function getFacadeAccessor(): string
|
|
{
|
|
return 'elasticsearch';
|
|
}
|
|
}
|