├── composer.json ├── composer.lock ├── index.php ├── tz.php └── vendor ├── autoload.php ├── composer ├── ClassLoader.php ├── LICENSE ├── autoload_classmap.php ├── autoload_files.php ├── autoload_namespaces.php ├── autoload_psr4.php ├── autoload_real.php ├── autoload_static.php └── installed.json ├── elasticsearch └── elasticsearch │ ├── .github │ ├── CONTRIBUTING.md │ ├── ISSUE_TEMPLATE.md │ └── PULL_REQUEST_TEMPLATE.md │ ├── .gitignore │ ├── .gitmodules │ ├── .php_cs │ ├── .travis.yml │ ├── BREAKING_CHANGES.md │ ├── CHANGELOG.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── composer.json │ ├── docs │ ├── breaking-changes.asciidoc │ ├── build │ │ ├── Elasticsearch │ │ │ ├── Client.asciidoc │ │ │ ├── ClientBuilder.asciidoc │ │ │ └── Namespaces │ │ │ │ ├── CatNamespace.asciidoc │ │ │ │ ├── ClusterNamespace.asciidoc │ │ │ │ ├── IndicesNamespace.asciidoc │ │ │ │ ├── IngestNamespace.asciidoc │ │ │ │ ├── NodesNamespace.asciidoc │ │ │ │ ├── RemoteNamespace.asciidoc │ │ │ │ ├── SnapshotNamespace.asciidoc │ │ │ │ └── TasksNamespace.asciidoc │ │ ├── PROJECT_VERSION │ │ ├── SAMI_VERSION │ │ ├── classes.asciidoc │ │ ├── interfaces.asciidoc │ │ ├── namespaces.asciidoc │ │ └── renderer.index │ ├── community.asciidoc │ ├── configuration.asciidoc │ ├── connection-pool.asciidoc │ ├── crud.asciidoc │ ├── futures.asciidoc │ ├── index-operations.asciidoc │ ├── index.asciidoc │ ├── installation.asciidoc │ ├── namespaces.asciidoc │ ├── overview.asciidoc │ ├── per-request-configuration.asciidoc │ ├── php-version-requirement.asciidoc │ ├── php_json_objects.asciidoc │ ├── quickstart.asciidoc │ ├── search-operations.asciidoc │ ├── security.asciidoc │ ├── selectors.asciidoc │ └── serializers.asciidoc │ ├── phpstan.neon │ ├── phpunit-integration.xml │ ├── phpunit.xml │ ├── ruleset.xml │ ├── src │ └── Elasticsearch │ │ ├── Client.php │ │ ├── ClientBuilder.php │ │ ├── Common │ │ ├── EmptyLogger.php │ │ └── Exceptions │ │ │ ├── AlreadyExpiredException.php │ │ │ ├── BadMethodCallException.php │ │ │ ├── BadRequest400Exception.php │ │ │ ├── ClientErrorResponseException.php │ │ │ ├── Conflict409Exception.php │ │ │ ├── Curl │ │ │ ├── CouldNotConnectToHost.php │ │ │ ├── CouldNotResolveHostException.php │ │ │ └── OperationTimeoutException.php │ │ │ ├── ElasticsearchException.php │ │ │ ├── Forbidden403Exception.php │ │ │ ├── InvalidArgumentException.php │ │ │ ├── MaxRetriesException.php │ │ │ ├── Missing404Exception.php │ │ │ ├── NoDocumentsToGetException.php │ │ │ ├── NoNodesAvailableException.php │ │ │ ├── NoShardAvailableException.php │ │ │ ├── RequestTimeout408Exception.php │ │ │ ├── RoutingMissingException.php │ │ │ ├── RuntimeException.php │ │ │ ├── ScriptLangNotSupportedException.php │ │ │ ├── Serializer │ │ │ └── JsonErrorException.php │ │ │ ├── ServerErrorResponseException.php │ │ │ ├── TransportException.php │ │ │ ├── Unauthorized401Exception.php │ │ │ └── UnexpectedValueException.php │ │ ├── ConnectionPool │ │ ├── AbstractConnectionPool.php │ │ ├── ConnectionPoolInterface.php │ │ ├── Selectors │ │ │ ├── RandomSelector.php │ │ │ ├── RoundRobinSelector.php │ │ │ ├── SelectorInterface.php │ │ │ └── StickyRoundRobinSelector.php │ │ ├── SimpleConnectionPool.php │ │ ├── SniffingConnectionPool.php │ │ ├── StaticConnectionPool.php │ │ └── StaticNoPingConnectionPool.php │ │ ├── Connections │ │ ├── Connection.php │ │ ├── ConnectionFactory.php │ │ ├── ConnectionFactoryInterface.php │ │ └── ConnectionInterface.php │ │ ├── Endpoints │ │ ├── AbstractEndpoint.php │ │ ├── Bulk.php │ │ ├── BulkEndpointInterface.php │ │ ├── Cat │ │ │ ├── Aliases.php │ │ │ ├── Allocation.php │ │ │ ├── Count.php │ │ │ ├── Fielddata.php │ │ │ ├── Health.php │ │ │ ├── Help.php │ │ │ ├── Indices.php │ │ │ ├── Master.php │ │ │ ├── NodeAttrs.php │ │ │ ├── Nodes.php │ │ │ ├── PendingTasks.php │ │ │ ├── Plugins.php │ │ │ ├── Recovery.php │ │ │ ├── Repositories.php │ │ │ ├── Segments.php │ │ │ ├── Shards.php │ │ │ ├── Snapshots.php │ │ │ ├── Tasks.php │ │ │ ├── Templates.php │ │ │ └── ThreadPool.php │ │ ├── ClearScroll.php │ │ ├── Cluster │ │ │ ├── AllocationExplain.php │ │ │ ├── Health.php │ │ │ ├── Nodes │ │ │ │ ├── AbstractNodesEndpoint.php │ │ │ │ ├── HotThreads.php │ │ │ │ ├── Info.php │ │ │ │ ├── Shutdown.php │ │ │ │ └── Stats.php │ │ │ ├── PendingTasks.php │ │ │ ├── RemoteInfo.php │ │ │ ├── Reroute.php │ │ │ ├── Settings │ │ │ │ ├── Get.php │ │ │ │ └── Put.php │ │ │ ├── State.php │ │ │ └── Stats.php │ │ ├── Count.php │ │ ├── CountPercolate.php │ │ ├── Create.php │ │ ├── Delete.php │ │ ├── DeleteByQuery.php │ │ ├── Exists.php │ │ ├── Explain.php │ │ ├── FieldCaps.php │ │ ├── FieldStats.php │ │ ├── Get.php │ │ ├── Index.php │ │ ├── Indices │ │ │ ├── Alias │ │ │ │ ├── AbstractAliasEndpoint.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Exists.php │ │ │ │ ├── Get.php │ │ │ │ └── Put.php │ │ │ ├── Aliases │ │ │ │ └── Update.php │ │ │ ├── Analyze.php │ │ │ ├── Cache │ │ │ │ └── Clear.php │ │ │ ├── ClearCache.php │ │ │ ├── Close.php │ │ │ ├── Create.php │ │ │ ├── Delete.php │ │ │ ├── Exists.php │ │ │ ├── Exists │ │ │ │ └── Types.php │ │ │ ├── Field │ │ │ │ └── Get.php │ │ │ ├── Flush.php │ │ │ ├── ForceMerge.php │ │ │ ├── Gateway │ │ │ │ └── Snapshot.php │ │ │ ├── Get.php │ │ │ ├── Mapping │ │ │ │ ├── Delete.php │ │ │ │ ├── Get.php │ │ │ │ ├── GetField.php │ │ │ │ └── Put.php │ │ │ ├── Open.php │ │ │ ├── Recovery.php │ │ │ ├── Refresh.php │ │ │ ├── Rollover.php │ │ │ ├── Seal.php │ │ │ ├── Segments.php │ │ │ ├── Settings │ │ │ │ ├── Get.php │ │ │ │ └── Put.php │ │ │ ├── ShardStores.php │ │ │ ├── Shrink.php │ │ │ ├── Snapshotindex.php │ │ │ ├── Stats.php │ │ │ ├── Status.php │ │ │ ├── Template │ │ │ │ ├── AbstractTemplateEndpoint.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Exists.php │ │ │ │ ├── Get.php │ │ │ │ └── Put.php │ │ │ ├── Type │ │ │ │ └── Exists.php │ │ │ ├── Upgrade │ │ │ │ ├── Get.php │ │ │ │ └── Post.php │ │ │ ├── Validate │ │ │ │ └── Query.php │ │ │ └── ValidateQuery.php │ │ ├── Info.php │ │ ├── Ingest │ │ │ ├── Pipeline │ │ │ │ ├── Delete.php │ │ │ │ ├── Get.php │ │ │ │ └── Put.php │ │ │ ├── ProcessorGrok.php │ │ │ └── Simulate.php │ │ ├── MPercolate.php │ │ ├── MTermVectors.php │ │ ├── Mget.php │ │ ├── Msearch.php │ │ ├── MsearchTemplate.php │ │ ├── Percolate.php │ │ ├── Ping.php │ │ ├── Reindex.php │ │ ├── Remote │ │ │ └── Info.php │ │ ├── RenderSearchTemplate.php │ │ ├── Script │ │ │ ├── Delete.php │ │ │ ├── Get.php │ │ │ └── Put.php │ │ ├── Scroll.php │ │ ├── Search.php │ │ ├── SearchShards.php │ │ ├── SearchTemplate.php │ │ ├── Snapshot │ │ │ ├── Create.php │ │ │ ├── Delete.php │ │ │ ├── Get.php │ │ │ ├── Repository │ │ │ │ ├── Create.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Get.php │ │ │ │ └── Verify.php │ │ │ ├── Restore.php │ │ │ └── Status.php │ │ ├── Source │ │ │ └── Get.php │ │ ├── Suggest.php │ │ ├── Tasks │ │ │ ├── Cancel.php │ │ │ ├── Get.php │ │ │ └── TasksList.php │ │ ├── Template │ │ │ ├── Delete.php │ │ │ └── Get.php │ │ ├── TermVectors.php │ │ ├── Update.php │ │ └── UpdateByQuery.php │ │ ├── Helper │ │ └── Iterators │ │ │ ├── SearchHitIterator.php │ │ │ └── SearchResponseIterator.php │ │ ├── Namespaces │ │ ├── AbstractNamespace.php │ │ ├── BooleanRequestWrapper.php │ │ ├── CatNamespace.php │ │ ├── ClusterNamespace.php │ │ ├── IndicesNamespace.php │ │ ├── IngestNamespace.php │ │ ├── NamespaceBuilderInterface.php │ │ ├── NodesNamespace.php │ │ ├── RemoteNamespace.php │ │ ├── SnapshotNamespace.php │ │ └── TasksNamespace.php │ │ ├── Serializers │ │ ├── ArrayToJSONSerializer.php │ │ ├── EverythingToJSONSerializer.php │ │ ├── SerializerInterface.php │ │ └── SmartSerializer.php │ │ └── Transport.php │ ├── tests │ ├── Elasticsearch │ │ └── Tests │ │ │ ├── ClientBuilder │ │ │ └── DummyLogger.php │ │ │ ├── ClientBuilderTest.php │ │ │ ├── ClientIntegrationTests.php │ │ │ ├── ClientTest.php │ │ │ ├── ConnectionPool │ │ │ ├── Selectors │ │ │ │ ├── RoundRobinSelectorTest.php │ │ │ │ └── StickyRoundRobinSelectorTest.php │ │ │ ├── SniffingConnectionPoolIntegrationTest.php │ │ │ ├── SniffingConnectionPoolTest.php │ │ │ ├── StaticConnectionPoolIntegrationTest.php │ │ │ └── StaticConnectionPoolTest.php │ │ │ ├── Endpoints │ │ │ └── AbstractEndpointTest.php │ │ │ ├── Helper │ │ │ └── Iterators │ │ │ │ └── SearchResponseIteratorTest.php │ │ │ ├── RegisteredNamespaceTest.php │ │ │ ├── Serializers │ │ │ ├── ArrayToJSONSerializerTest.php │ │ │ └── EverythingToJSONSerializerTest.php │ │ │ └── YamlRunnerTest.php │ └── bootstrap.php │ ├── travis │ ├── download_and_run_es.sh │ └── generate_docs.sh │ └── util │ ├── EnsureClusterAlive.php │ ├── RestSpecRunner.php │ ├── SpecParser.php │ ├── docsConfig.php │ ├── docstheme │ ├── layout │ │ └── base.twig │ ├── macros.twig │ ├── manifest.yml │ └── pages │ │ ├── class.twig │ │ ├── classes.twig │ │ ├── interfaces.twig │ │ └── namespaces.twig │ └── templates │ └── endpoint.twig ├── guzzlehttp ├── ringphp │ ├── .editorconfig │ ├── .gitignore │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── README.rst │ ├── composer.json │ ├── docs │ │ ├── Makefile │ │ ├── client_handlers.rst │ │ ├── client_middleware.rst │ │ ├── conf.py │ │ ├── futures.rst │ │ ├── index.rst │ │ ├── requirements.txt │ │ ├── spec.rst │ │ └── testing.rst │ ├── phpunit.xml.dist │ ├── src │ │ ├── Client │ │ │ ├── ClientUtils.php │ │ │ ├── CurlFactory.php │ │ │ ├── CurlHandler.php │ │ │ ├── CurlMultiHandler.php │ │ │ ├── Middleware.php │ │ │ ├── MockHandler.php │ │ │ └── StreamHandler.php │ │ ├── Core.php │ │ ├── Exception │ │ │ ├── CancelledException.php │ │ │ ├── CancelledFutureAccessException.php │ │ │ ├── ConnectException.php │ │ │ └── RingException.php │ │ └── Future │ │ │ ├── BaseFutureTrait.php │ │ │ ├── CompletedFutureArray.php │ │ │ ├── CompletedFutureValue.php │ │ │ ├── FutureArray.php │ │ │ ├── FutureArrayInterface.php │ │ │ ├── FutureInterface.php │ │ │ ├── FutureValue.php │ │ │ └── MagicFutureTrait.php │ └── tests │ │ ├── Client │ │ ├── CurlFactoryTest.php │ │ ├── CurlHandlerTest.php │ │ ├── CurlMultiHandlerTest.php │ │ ├── MiddlewareTest.php │ │ ├── MockHandlerTest.php │ │ ├── Server.php │ │ ├── StreamHandlerTest.php │ │ └── server.js │ │ ├── CoreTest.php │ │ ├── Future │ │ ├── CompletedFutureArrayTest.php │ │ ├── CompletedFutureValueTest.php │ │ ├── FutureArrayTest.php │ │ └── FutureValueTest.php │ │ └── bootstrap.php └── streams │ ├── .gitignore │ ├── .travis.yml │ ├── CHANGELOG.rst │ ├── LICENSE │ ├── Makefile │ ├── README.rst │ ├── composer.json │ ├── phpunit.xml.dist │ ├── src │ ├── AppendStream.php │ ├── AsyncReadStream.php │ ├── BufferStream.php │ ├── CachingStream.php │ ├── DroppingStream.php │ ├── Exception │ │ ├── CannotAttachException.php │ │ └── SeekException.php │ ├── FnStream.php │ ├── GuzzleStreamWrapper.php │ ├── InflateStream.php │ ├── LazyOpenStream.php │ ├── LimitStream.php │ ├── MetadataStreamInterface.php │ ├── NoSeekStream.php │ ├── NullStream.php │ ├── PumpStream.php │ ├── Stream.php │ ├── StreamDecoratorTrait.php │ ├── StreamInterface.php │ └── Utils.php │ └── tests │ ├── AppendStreamTest.php │ ├── AsyncReadStreamTest.php │ ├── BufferStreamTest.php │ ├── CachingStreamTest.php │ ├── DroppingStreamTest.php │ ├── Exception │ └── SeekExceptionTest.php │ ├── FnStreamTest.php │ ├── GuzzleStreamWrapperTest.php │ ├── InflateStreamTest.php │ ├── LazyOpenStreamTest.php │ ├── LimitStreamTest.php │ ├── NoSeekStreamTest.php │ ├── NullStreamTest.php │ ├── PumpStreamTest.php │ ├── StreamDecoratorTraitTest.php │ ├── StreamTest.php │ └── UtilsTest.php ├── psr └── log │ ├── .gitignore │ ├── LICENSE │ ├── Psr │ └── Log │ │ ├── AbstractLogger.php │ │ ├── InvalidArgumentException.php │ │ ├── LogLevel.php │ │ ├── LoggerAwareInterface.php │ │ ├── LoggerAwareTrait.php │ │ ├── LoggerInterface.php │ │ ├── LoggerTrait.php │ │ ├── NullLogger.php │ │ └── Test │ │ └── LoggerInterfaceTest.php │ ├── README.md │ └── composer.json └── react └── promise ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── composer.json ├── phpunit.xml.dist ├── src ├── CancellablePromiseInterface.php ├── CancellationQueue.php ├── Deferred.php ├── Exception │ └── LengthException.php ├── ExtendedPromiseInterface.php ├── FulfilledPromise.php ├── LazyPromise.php ├── Promise.php ├── PromiseInterface.php ├── PromisorInterface.php ├── RejectedPromise.php ├── UnhandledRejectionException.php ├── functions.php └── functions_include.php └── tests ├── CancellationQueueTest.php ├── DeferredTest.php ├── FulfilledPromiseTest.php ├── FunctionAllTest.php ├── FunctionAnyTest.php ├── FunctionCheckTypehintTest.php ├── FunctionMapTest.php ├── FunctionRaceTest.php ├── FunctionReduceTest.php ├── FunctionRejectTest.php ├── FunctionResolveTest.php ├── FunctionSomeTest.php ├── LazyPromiseTest.php ├── PromiseAdapter ├── CallbackPromiseAdapter.php └── PromiseAdapterInterface.php ├── PromiseTest.php ├── PromiseTest ├── CancelTestTrait.php ├── FullTestTrait.php ├── NotifyTestTrait.php ├── PromiseFulfilledTestTrait.php ├── PromisePendingTestTrait.php ├── PromiseRejectedTestTrait.php ├── PromiseSettledTestTrait.php ├── RejectTestTrait.php └── ResolveTestTrait.php ├── RejectedPromiseTest.php ├── Stub └── CallableStub.php ├── TestCase.php ├── bootstrap.php └── fixtures ├── SimpleFulfilledTestPromise.php ├── SimpleFulfilledTestThenable.php ├── SimpleRejectedTestPromise.php ├── SimpleTestCancellable.php └── SimpleTestCancellableThenable.php /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "elasticsearch/elasticsearch": "~6.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /vendor/autoload.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/react/promise/src/functions_include.php', 10 | ); 11 | -------------------------------------------------------------------------------- /vendor/composer/autoload_namespaces.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/react/promise/src'), 10 | 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'), 11 | 'GuzzleHttp\\Stream\\' => array($vendorDir . '/guzzlehttp/streams/src'), 12 | 'GuzzleHttp\\Ring\\' => array($vendorDir . '/guzzlehttp/ringphp/src'), 13 | 'Elasticsearch\\' => array($vendorDir . '/elasticsearch/elasticsearch/src/Elasticsearch'), 14 | ); 15 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Summary of problem or feature request 3 | 4 | 5 | 6 | 7 | ### Code snippet of problem 8 | 9 | 19 | 20 | ### System details 21 | 22 | 27 | 28 | - Operating System 29 | - PHP Version 30 | - ES-PHP client version 31 | - Elasticsearch version -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/.gitignore: -------------------------------------------------------------------------------- 1 | #composer related 2 | composer.lock 3 | vendor/ 4 | composer.phar 5 | .php_cs.cache 6 | 7 | #editor related 8 | .idea 9 | 10 | # OS generated files 11 | .DS_Store 12 | .DS_Store? 13 | ._* 14 | .Spotlight-V100 15 | .Trashes 16 | Icon? 17 | ehthumbs.db 18 | Thumbs.db 19 | 20 | #generator related 21 | generator/* 22 | 23 | # Elasticsearch related 24 | util/elasticsearch/ 25 | util/cache/ 26 | util/output 27 | 28 | # Sami docs generator 29 | /sami.phar 30 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "util/elasticsearch"] 2 | path = util/elasticsearch 3 | url = https://github.com/elasticsearch/elasticsearch.git 4 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/.php_cs: -------------------------------------------------------------------------------- 1 | exclude('benchmarks') 6 | ->exclude('docs') 7 | ->exclude('util') 8 | ->exclude('.github') 9 | ->exclude('util') 10 | ->exclude('travis') 11 | ->exclude('util/cache') 12 | ->exclude('util/elasticsearch') 13 | ->exclude('vendor') 14 | ->in(__DIR__); 15 | 16 | return Symfony\CS\Config\Config::create() 17 | ->setUsingCache(true) 18 | ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) 19 | ->finder($finder); 20 | } 21 | 22 | return php_cs(); 23 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | jdk: 4 | - oraclejdk8 5 | 6 | addons: 7 | apt: 8 | packages: 9 | - oracle-java8-installer 10 | 11 | branches: 12 | except: 13 | - 0.4 14 | 15 | sudo: true 16 | 17 | matrix: 18 | fast_finish: true 19 | include: 20 | - php: 7.0 21 | env: ES_VERSION="6.0" 22 | - php: 7.0 23 | env: ES_VERSION="6.x" 24 | 25 | - php: 7.1 26 | env: ES_VERSION="6.0" 27 | - php: 7.1 28 | env: ES_VERSION="6.x" 29 | 30 | - php: 7.2 31 | env: ES_VERSION="6.0" 32 | 33 | allow_failures: 34 | - env: ES_VERSION="6.x" 35 | 36 | env: 37 | global: 38 | - ES_TEST_HOST=http://localhost:9200 39 | - JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre" 40 | 41 | before_install: 42 | - sudo update-java-alternatives -s java-8-oracle 43 | - ./travis/download_and_run_es.sh 44 | 45 | install: 46 | - composer install --prefer-source 47 | 48 | before_script: 49 | - if [ $TRAVIS_PHP_VERSION = '7.0' ]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; fi 50 | - php util/RestSpecRunner.php 51 | - php util/EnsureClusterAlive.php 52 | 53 | script: 54 | - composer run-script phpcs 55 | - composer run-script phpstan 56 | - vendor/bin/phpunit $PHPUNIT_FLAGS 57 | - vendor/bin/phpunit -c phpunit-integration.xml --group sync $PHPUNIT_FLAGS 58 | 59 | after_script: 60 | - if [ $TRAVIS_PHP_VERSION = '7.0' ]; then php vendor/bin/coveralls; fi 61 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/BREAKING_CHANGES.md: -------------------------------------------------------------------------------- 1 | # 6.0 2 | 3 | - [Search Templates]: PutTemplate endpoint has been removed (see [Elasticsearch Breaking Changes](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_60_scripting_changes.html#_stored_search_template_apis_removed)), 4 | use PutScript instead. -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/NOTICE: -------------------------------------------------------------------------------- 1 | Apache v2.0 Notice: 2 | Copyright 2013-2014 Elasticsearch 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | 16 | 17 | LGPL v2.1 Notice: 18 | Copyright (C) 2013-2014 Elasticsearch 19 | 20 | This library is free software; you can redistribute it and/or 21 | modify it under the terms of the GNU Lesser General Public 22 | License as published by the Free Software Foundation; either 23 | version 2.1 of the License, or (at your option) any later version. 24 | 25 | This library is distributed in the hope that it will be useful, 26 | but WITHOUT ANY WARRANTY; without even the implied warranty of 27 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 28 | Lesser General Public License for more details. 29 | 30 | You should have received a copy of the GNU Lesser General Public 31 | License along with this library; if not, write to the Free Software 32 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "elasticsearch/elasticsearch", 3 | "description": "PHP Client for Elasticsearch", 4 | "keywords": ["search","client", "elasticsearch"], 5 | "type": "library", 6 | "license": "Apache-2.0", 7 | "authors": [ 8 | { 9 | "name": "Zachary Tong" 10 | } 11 | ], 12 | "require": { 13 | "php": "^7.0", 14 | "ext-json": ">=1.3.7", 15 | "guzzlehttp/ringphp": "~1.0", 16 | "psr/log": "~1.0" 17 | }, 18 | "require-dev": { 19 | "cpliakas/git-wrapper": "~1.0", 20 | "doctrine/inflector": "^1.1", 21 | "mockery/mockery": "0.9.4", 22 | "phpstan/phpstan-shim": "0.8.3", 23 | "phpunit/phpunit": "6.3.0", 24 | "squizlabs/php_codesniffer": "3.0.2", 25 | "symfony/finder": "^2.8", 26 | "symfony/yaml": "^2.8" 27 | }, 28 | "suggest": { 29 | "ext-curl": "*", 30 | "monolog/monolog": "Allows for client-level logging and tracing" 31 | }, 32 | "autoload": { 33 | "psr-4": { 34 | "Elasticsearch\\": "src/Elasticsearch/" 35 | } 36 | }, 37 | "autoload-dev": { 38 | "psr-4": { 39 | "Elasticsearch\\Tests\\": "tests/Elasticsearch/Tests/" 40 | } 41 | }, 42 | "config": { 43 | "sort-packages": true 44 | }, 45 | "scripts": { 46 | "phpcs": [ 47 | "phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp src", 48 | "phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp tests" 49 | ], 50 | "phpstan": [ 51 | "@php vendor/phpstan/phpstan-shim/phpstan.phar analyse -c phpstan.neon tests --level 7 --no-progress" 52 | ] 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/breaking-changes.asciidoc: -------------------------------------------------------------------------------- 1 | == Breaking changes from 5.x 2 | 3 | None! :) -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/build/Elasticsearch/Namespaces/RemoteNamespace.asciidoc: -------------------------------------------------------------------------------- 1 | 2 | 3 | [[Elasticsearch_Namespaces_RemoteNamespace]] 4 | === Elasticsearch\Namespaces\RemoteNamespace 5 | 6 | 7 | 8 | Class RemoteNamespace 9 | 10 | 11 | *Methods* 12 | 13 | The class defines the following methods: 14 | 15 | * <> 16 | 17 | 18 | 19 | [[Elasticsearch_Namespaces_RemoteNamespaceinfo_info]] 20 | .`info()` 21 | **** 22 | [source,php] 23 | ---- 24 | /* 25 | */ 26 | 27 | $params = [ 28 | // ... 29 | ]; 30 | 31 | $client = ClientBuilder::create()->build(); 32 | $response = $client->remote()->info($params); 33 | ---- 34 | **** 35 | 36 | 37 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/build/PROJECT_VERSION: -------------------------------------------------------------------------------- 1 | master -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/build/SAMI_VERSION: -------------------------------------------------------------------------------- 1 | 4.0.10 -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/build/interfaces.asciidoc: -------------------------------------------------------------------------------- 1 | 2 | [[ElasticsearchPHP_Interfaces]] 3 | == Reference - Interfaces 4 | 5 | This is a complete list of available interfaces: 6 | 7 | * There are no interfaces available. 8 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/build/namespaces.asciidoc: -------------------------------------------------------------------------------- 1 | 2 | [[ElasticsearchPHP_Namespaces]] 3 | == Reference - Namespaces 4 | 5 | This is a complete list of available namespaces: 6 | 7 | * <> 8 | * <> 9 | include::Elasticsearch.asciidoc[] 10 | include::Elasticsearch/Namespaces.asciidoc[] 11 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/build/renderer.index: -------------------------------------------------------------------------------- 1 | C:19:"Sami\Renderer\Index":1041:{a:3:{i:0;a:10:{s:20:"Elasticsearch\Client";s:40:"6ac4061ad03df8cddeaec31a8bfb556fc7a33e71";s:27:"Elasticsearch\ClientBuilder";s:40:"30fa910e5653bf5f7096369ef1529a47da7e3e92";s:37:"Elasticsearch\Namespaces\CatNamespace";s:40:"a9d466909dc08564e9c1516162c3a6bb91dbecbe";s:41:"Elasticsearch\Namespaces\ClusterNamespace";s:40:"577bab662735319b93ed7b555cd2b12b73e40680";s:41:"Elasticsearch\Namespaces\IndicesNamespace";s:40:"66391991c19f28764c86e9604e231b9ce004c82e";s:40:"Elasticsearch\Namespaces\IngestNamespace";s:40:"9bd2962d80e3c0cdcaedda4f23b722b3a8cfa013";s:39:"Elasticsearch\Namespaces\NodesNamespace";s:40:"da4e71f9d953d00600920c26fe585b6884e45f94";s:40:"Elasticsearch\Namespaces\RemoteNamespace";s:40:"a503f6ea82452e1ea0275a044aeb527bc946616d";s:42:"Elasticsearch\Namespaces\SnapshotNamespace";s:40:"e28a1807789b0fcca3fd6b9712ed713650cf7ac2";s:39:"Elasticsearch\Namespaces\TasksNamespace";s:40:"2de86d7ab409a629320725f6444c76d2a9313c72";}i:1;a:1:{i:0;s:6:"master";}i:2;a:2:{i:0;s:13:"Elasticsearch";i:1;s:24:"Elasticsearch\Namespaces";}}} -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/index.asciidoc: -------------------------------------------------------------------------------- 1 | 2 | = Elasticsearch-PHP 3 | 4 | include::overview.asciidoc[] 5 | 6 | include::quickstart.asciidoc[] 7 | 8 | include::installation.asciidoc[] 9 | 10 | include::configuration.asciidoc[] 11 | 12 | include::per-request-configuration.asciidoc[] 13 | 14 | include::futures.asciidoc[] 15 | 16 | include::php_json_objects.asciidoc[] 17 | 18 | include::index-operations.asciidoc[] 19 | 20 | include::crud.asciidoc[] 21 | 22 | include::search-operations.asciidoc[] 23 | 24 | include::namespaces.asciidoc[] 25 | 26 | include::security.asciidoc[] 27 | 28 | include::connection-pool.asciidoc[] 29 | 30 | include::selectors.asciidoc[] 31 | 32 | include::serializers.asciidoc[] 33 | 34 | include::php-version-requirement.asciidoc[] 35 | 36 | include::breaking-changes.asciidoc[] 37 | 38 | include::community.asciidoc[] 39 | 40 | include::build/classes.asciidoc[] 41 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/overview.asciidoc: -------------------------------------------------------------------------------- 1 | == Overview 2 | 3 | This is the official PHP client for Elasticsearch. It is designed to be a very low-level client that does not stray from the REST API. 4 | 5 | All methods closely match the REST API, and furthermore, match the method structure of other language clients (ruby, python, etc). We hope that this consistency makes it easy to get started with a client, and to seamlessly switch from one language to the next with minimal effort. 6 | 7 | The client is designed to be "unopinionated". There are a few universal niceties added to the client (cluster state sniffing, round-robin requests, etc) but largely it is very barebones. This was intentional. We want a common base that more sophisticated libraries can build on top of. 8 | 9 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/docs/php-version-requirement.asciidoc: -------------------------------------------------------------------------------- 1 | == PHP Version Requirement 2 | 3 | Version 5.0 of Elasticsearch-PHP requires PHP version 5.6.6 or higher. In addition, it requires the native JSON 4 | extension to be version 1.3.7 or higher. 5 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/phpstan.neon: -------------------------------------------------------------------------------- 1 | parameters: 2 | ignoreErrors: 3 | - '#Mockery\\MockInterface::shouldReceive\(\)#' 4 | - '#Mockery\\MockInterface given#' 5 | - '#Mockery\\MockInterface\[\] given#' 6 | 7 | # because of \Elasticsearch\Tests\RegisteredNamespaceTest 8 | - '#Call to an undefined method Elasticsearch\\Client::foo\(\)#' 9 | - '#Call to an undefined method Elasticsearch\\Client::bar\(\)#' 10 | 11 | # because of \Elasticsearch\Tests\ClientBuilderTest 12 | - '#expects Psr\\Log\\LoggerInterface, Elasticsearch\\Tests\\ClientBuilder\\DummyLogger given.$#' 13 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/phpunit-integration.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | tests/Elasticsearch/Tests/YamlRunnerTest.php 16 | 17 | 18 | 19 | 20 | src 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/phpunit.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | tests 16 | tests/Elasticsearch/Tests/YamlRunnerTest.php 17 | 18 | 19 | 20 | 21 | src 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/ruleset.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/EmptyLogger.php: -------------------------------------------------------------------------------- 1 | 17 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 18 | * @link http://elastic.co 19 | */ 20 | class EmptyLogger extends AbstractLogger implements LoggerInterface 21 | { 22 | /** 23 | * Logs with an arbitrary level. 24 | * 25 | * @param mixed $level 26 | * @param string $message 27 | * @param array $context 28 | * 29 | * @return null 30 | */ 31 | public function log($level, $message, array $context = array()) 32 | { 33 | return; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/AlreadyExpiredException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class AlreadyExpiredException extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/BadMethodCallException.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class BadMethodCallException extends \BadMethodCallException implements ElasticsearchException 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/BadRequest400Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class BadRequest400Exception extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/ClientErrorResponseException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class ClientErrorResponseException extends TransportException implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Conflict409Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class Conflict409Exception extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Curl/CouldNotConnectToHost.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class CouldNotConnectToHost extends TransportException implements ElasticsearchException 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Curl/CouldNotResolveHostException.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class CouldNotResolveHostException extends TransportException implements ElasticsearchException 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Curl/OperationTimeoutException.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class OperationTimeoutException extends TransportException implements ElasticsearchException 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/ElasticsearchException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | interface ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Forbidden403Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class Forbidden403Exception extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class InvalidArgumentException extends \InvalidArgumentException implements ElasticsearchException 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/MaxRetriesException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class MaxRetriesException extends TransportException implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Missing404Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class Missing404Exception extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/NoDocumentsToGetException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class NoDocumentsToGetException extends ServerErrorResponseException implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/NoNodesAvailableException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class NoNodesAvailableException extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/NoShardAvailableException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class NoShardAvailableException extends ServerErrorResponseException implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/RequestTimeout408Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class RequestTimeout408Exception extends BadRequest400Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/RoutingMissingException.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 13 | * @link http://elastic.co 14 | */ 15 | class RoutingMissingException extends ServerErrorResponseException implements ElasticsearchException 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/RuntimeException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class RuntimeException extends \RuntimeException implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/ScriptLangNotSupportedException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class ScriptLangNotSupportedException extends BadRequest400Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/ServerErrorResponseException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class ServerErrorResponseException extends TransportException implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/TransportException.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class TransportException extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Unauthorized401Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class Unauthorized401Exception extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/UnexpectedValueException.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class UnexpectedValueException extends \UnexpectedValueException implements ElasticsearchException 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/ConnectionPoolInterface.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | interface ConnectionPoolInterface 17 | { 18 | /** 19 | * @param bool $force 20 | * 21 | * @return ConnectionInterface 22 | */ 23 | public function nextConnection($force = false); 24 | 25 | /** 26 | * @return void 27 | */ 28 | public function scheduleCheck(); 29 | } 30 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/Selectors/RandomSelector.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class RandomSelector implements SelectorInterface 17 | { 18 | /** 19 | * Select a random connection from the provided array 20 | * 21 | * @param ConnectionInterface[] $connections an array of ConnectionInterface instances to choose from 22 | * 23 | * @return \Elasticsearch\Connections\ConnectionInterface 24 | */ 25 | public function select($connections) 26 | { 27 | return $connections[array_rand($connections)]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/Selectors/RoundRobinSelector.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class RoundRobinSelector implements SelectorInterface 17 | { 18 | /** 19 | * @var int 20 | */ 21 | private $current = 0; 22 | 23 | /** 24 | * Select the next connection in the sequence 25 | * 26 | * @param ConnectionInterface[] $connections an array of ConnectionInterface instances to choose from 27 | * 28 | * @return \Elasticsearch\Connections\ConnectionInterface 29 | */ 30 | public function select($connections) 31 | { 32 | $returnConnection = $connections[$this->current % count($connections)]; 33 | 34 | $this->current += 1; 35 | 36 | return $returnConnection; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/Selectors/SelectorInterface.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | interface SelectorInterface 15 | { 16 | /** 17 | * Perform logic to select a single ConnectionInterface instance from the array provided 18 | * 19 | * @param \Elasticsearch\Connections\ConnectionInterface[] $connections an array of ConnectionInterface instances to choose from 20 | * 21 | * @return \Elasticsearch\Connections\ConnectionInterface 22 | */ 23 | public function select($connections); 24 | } 25 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/Selectors/StickyRoundRobinSelector.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class StickyRoundRobinSelector implements SelectorInterface 17 | { 18 | /** 19 | * @var int 20 | */ 21 | private $current = 0; 22 | 23 | /** 24 | * @var int 25 | */ 26 | private $currentCounter = 0; 27 | 28 | /** 29 | * Use current connection unless it is dead, otherwise round-robin 30 | * 31 | * @param ConnectionInterface[] $connections Array of connections to choose from 32 | * 33 | * @return ConnectionInterface 34 | */ 35 | public function select($connections) 36 | { 37 | /** @var ConnectionInterface[] $connections */ 38 | if ($connections[$this->current]->isAlive()) { 39 | return $connections[$this->current]; 40 | } 41 | 42 | $this->currentCounter += 1; 43 | $this->current = $this->currentCounter % count($connections); 44 | 45 | return $connections[$this->current]; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/SimpleConnectionPool.php: -------------------------------------------------------------------------------- 1 | selector->select($this->connections); 29 | } 30 | 31 | public function scheduleCheck() 32 | { 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/ConnectionFactoryInterface.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | interface ConnectionFactoryInterface 18 | { 19 | /** 20 | * @param $handler 21 | * @param array $connectionParams 22 | * @param SerializerInterface $serializer 23 | * @param LoggerInterface $logger 24 | * @param LoggerInterface $tracer 25 | */ 26 | public function __construct( 27 | callable $handler, 28 | array $connectionParams, 29 | SerializerInterface $serializer, 30 | LoggerInterface $logger, 31 | LoggerInterface $tracer 32 | ); 33 | 34 | /** 35 | * @param $hostDetails 36 | * 37 | * @return ConnectionInterface 38 | */ 39 | public function create($hostDetails); 40 | } 41 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/BulkEndpointInterface.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | interface BulkEndpointInterface 18 | { 19 | /** 20 | * Constructor 21 | * 22 | * @param SerializerInterface $serializer A serializer 23 | */ 24 | public function __construct(SerializerInterface $serializer); 25 | } 26 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Count.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Count extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_cat/count"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/_cat/count/$index"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'local', 40 | 'master_timeout', 41 | 'h', 42 | 'help', 43 | 'v', 44 | 's', 45 | 'format', 46 | ); 47 | } 48 | 49 | /** 50 | * @return string 51 | */ 52 | public function getMethod() 53 | { 54 | return 'GET'; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Health.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Health extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $uri = "/_cat/health"; 24 | 25 | return $uri; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return array( 34 | 'local', 35 | 'master_timeout', 36 | 'h', 37 | 'help', 38 | 'ts', 39 | 'v', 40 | 's', 41 | 'format', 42 | ); 43 | } 44 | 45 | /** 46 | * @return string 47 | */ 48 | public function getMethod() 49 | { 50 | return 'GET'; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Help.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Help extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $uri = "/_cat"; 24 | 25 | return $uri; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return array( 34 | 'help', 35 | 's', 36 | 'format', 37 | ); 38 | } 39 | 40 | /** 41 | * @return string 42 | */ 43 | public function getMethod() 44 | { 45 | return 'GET'; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Indices.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | 17 | class Indices extends AbstractEndpoint 18 | { 19 | /** 20 | * @return string 21 | */ 22 | public function getURI() 23 | { 24 | $index = $this->index; 25 | $uri = "/_cat/indices"; 26 | 27 | if (isset($index) === true) { 28 | $uri = "/_cat/indices/$index"; 29 | } 30 | 31 | return $uri; 32 | } 33 | 34 | /** 35 | * @return string[] 36 | */ 37 | public function getParamWhitelist() 38 | { 39 | return array( 40 | 'bytes', 41 | 'local', 42 | 'master_timeout', 43 | 'h', 44 | 'help', 45 | 'pri', 46 | 'v', 47 | 'health', 48 | 's', 49 | 'format', 50 | ); 51 | } 52 | 53 | /** 54 | * @return string 55 | */ 56 | public function getMethod() 57 | { 58 | return 'GET'; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Master.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Master extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $uri = "/_cat/master"; 24 | 25 | return $uri; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return array( 34 | 'local', 35 | 'master_timeout', 36 | 'h', 37 | 'help', 38 | 'v', 39 | 's', 40 | 'format', 41 | ); 42 | } 43 | 44 | /** 45 | * @return string 46 | */ 47 | public function getMethod() 48 | { 49 | return 'GET'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/NodeAttrs.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class NodeAttrs extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $uri = "/_cat/nodeattrs"; 24 | 25 | return $uri; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return array( 34 | 'local', 35 | 'master_timeout', 36 | 'h', 37 | 'help', 38 | 'v', 39 | 's', 40 | 'format', 41 | ); 42 | } 43 | 44 | /** 45 | * @return string 46 | */ 47 | public function getMethod() 48 | { 49 | return 'GET'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Nodes.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Nodes extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $uri = "/_cat/nodes"; 24 | 25 | return $uri; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return array( 34 | 'local', 35 | 'master_timeout', 36 | 'h', 37 | 'help', 38 | 'v', 39 | 's', 40 | 'full_id', 41 | 'format', 42 | ); 43 | } 44 | 45 | /** 46 | * @return string 47 | */ 48 | public function getMethod() 49 | { 50 | return 'GET'; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/PendingTasks.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class PendingTasks extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $uri = "/_cat/pending_tasks"; 24 | 25 | return $uri; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return array( 34 | 'local', 35 | 'master_timeout', 36 | 'h', 37 | 'help', 38 | 'v', 39 | 's', 40 | 'format', 41 | ); 42 | } 43 | 44 | /** 45 | * @return string 46 | */ 47 | public function getMethod() 48 | { 49 | return 'GET'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Plugins.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Plugins extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $uri = "/_cat/plugins"; 24 | 25 | return $uri; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return array( 34 | 'local', 35 | 'master_timeout', 36 | 'h', 37 | 'help', 38 | 'v', 39 | 's', 40 | 'format', 41 | ); 42 | } 43 | 44 | /** 45 | * @return string 46 | */ 47 | public function getMethod() 48 | { 49 | return 'GET'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Recovery.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Recovery extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_cat/recovery"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/_cat/recovery/$index"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'bytes', 40 | 'local', 41 | 'master_timeout', 42 | 'h', 43 | 'help', 44 | 'v', 45 | 's', 46 | 'format', 47 | ); 48 | } 49 | 50 | /** 51 | * @return string 52 | */ 53 | public function getMethod() 54 | { 55 | return 'GET'; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Repositories.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Repositories extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $uri = "/_cat/repositories"; 24 | 25 | return $uri; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return array( 34 | 'local', 35 | 'master_timeout', 36 | 'h', 37 | 'help', 38 | 'v', 39 | 's', 40 | 'format', 41 | ); 42 | } 43 | 44 | /** 45 | * @return string 46 | */ 47 | public function getMethod() 48 | { 49 | return 'GET'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Segments.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elastic.co 21 | */ 22 | 23 | class Segments extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | public function getURI() 29 | { 30 | $index = $this->index; 31 | $uri = "/_cat/segments"; 32 | 33 | if (isset($index) === true) { 34 | $uri = "/_cat/segments/$index"; 35 | } 36 | 37 | return $uri; 38 | } 39 | 40 | 41 | /** 42 | * @return string[] 43 | */ 44 | public function getParamWhitelist() 45 | { 46 | return array( 47 | 'h', 48 | 'help', 49 | 'v', 50 | 's', 51 | 'format', 52 | ); 53 | } 54 | 55 | 56 | /** 57 | * @return string 58 | */ 59 | public function getMethod() 60 | { 61 | return 'GET'; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Shards.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Shards extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_cat/shards"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/_cat/shards/$index"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'bytes', 40 | 'local', 41 | 'master_timeout', 42 | 'h', 43 | 'help', 44 | 'v', 45 | 's', 46 | 'format', 47 | ); 48 | } 49 | 50 | /** 51 | * @return string 52 | */ 53 | public function getMethod() 54 | { 55 | return 'GET'; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Tasks.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Tasks extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | return "/_cat/tasks"; 24 | } 25 | 26 | /** 27 | * @return string[] 28 | */ 29 | public function getParamWhitelist() 30 | { 31 | return array( 32 | 'format', 33 | 'node_id', 34 | 'actions', 35 | 'detailed', 36 | 'parent_node', 37 | 'parent_task', 38 | 'h', 39 | 'help', 40 | 'v', 41 | 's' 42 | ); 43 | } 44 | 45 | /** 46 | * @return string 47 | */ 48 | public function getMethod() 49 | { 50 | return 'GET'; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Templates.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Templates extends AbstractEndpoint 17 | { 18 | private $name; 19 | 20 | /** 21 | * @param string $name 22 | * @return Templates 23 | */ 24 | public function setName($name) 25 | { 26 | $this->name = $name; 27 | return $this; 28 | } 29 | 30 | /** 31 | * @return string 32 | */ 33 | public function getURI() 34 | { 35 | if (isset($this->name)) { 36 | return "/_cat/templates/{$this->name}"; 37 | } else { 38 | return "/_cat/templates"; 39 | } 40 | } 41 | 42 | /** 43 | * @return string[] 44 | */ 45 | public function getParamWhitelist() 46 | { 47 | return array( 48 | 'format', 49 | 'node_id', 50 | 'actions', 51 | 'detailed', 52 | 'parent_node', 53 | 'parent_task', 54 | 'h', 55 | 'help', 56 | 'v', 57 | 's', 58 | 'local', 59 | 'master_timeout', 60 | ); 61 | } 62 | 63 | /** 64 | * @return string 65 | */ 66 | public function getMethod() 67 | { 68 | return 'GET'; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/ThreadPool.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | 17 | class ThreadPool extends AbstractEndpoint 18 | { 19 | /** 20 | * @return string 21 | */ 22 | public function getURI() 23 | { 24 | $uri = "/_cat/thread_pool"; 25 | 26 | return $uri; 27 | } 28 | 29 | /** 30 | * @return string[] 31 | */ 32 | public function getParamWhitelist() 33 | { 34 | return array( 35 | 'local', 36 | 'master_timeout', 37 | 'h', 38 | 'help', 39 | 'v', 40 | 'full_id', 41 | 'size', 42 | 'thread_pool_patterns', 43 | 's', 44 | 'format', 45 | ); 46 | } 47 | 48 | /** 49 | * @return string 50 | */ 51 | public function getMethod() 52 | { 53 | return 'GET'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/AllocationExplain.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class AllocationExplain extends AbstractEndpoint 17 | { 18 | 19 | /** 20 | * @param array $body 21 | * 22 | * @throws \Elasticsearch\Common\Exceptions\InvalidArgumentException 23 | * @return $this 24 | */ 25 | public function setBody($body) 26 | { 27 | if (isset($body) !== true) { 28 | return $this; 29 | } 30 | 31 | $this->body = $body; 32 | 33 | return $this; 34 | } 35 | 36 | /** 37 | * @return string 38 | */ 39 | public function getURI() 40 | { 41 | return "/_cluster/allocation/explain"; 42 | } 43 | 44 | /** 45 | * @return string[] 46 | */ 47 | public function getParamWhitelist() 48 | { 49 | return array( 50 | 'include_yes_decisions', 51 | 'include_disk_info', 52 | ); 53 | } 54 | 55 | /** 56 | * @return string 57 | */ 58 | public function getMethod() 59 | { 60 | return 'GET'; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Health.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Health extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_cluster/health"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/_cluster/health/$index"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'level', 40 | 'local', 41 | 'master_timeout', 42 | 'timeout', 43 | 'wait_for_active_shards', 44 | 'wait_for_nodes', 45 | 'wait_for_relocating_shards', 46 | 'wait_for_status', 47 | 'wait_for_events', 48 | 'wait_for_no_relocating_shards' 49 | ); 50 | } 51 | 52 | /** 53 | * @return string 54 | */ 55 | public function getMethod() 56 | { 57 | return 'GET'; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Nodes/AbstractNodesEndpoint.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | abstract class AbstractNodesEndpoint extends AbstractEndpoint 18 | { 19 | /** @var string A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes */ 20 | protected $nodeID; 21 | 22 | /** 23 | * @param $nodeID 24 | * 25 | * @throws \Elasticsearch\Common\Exceptions\InvalidArgumentException 26 | * 27 | * @return $this 28 | */ 29 | public function setNodeID($nodeID) 30 | { 31 | if (isset($nodeID) !== true) { 32 | return $this; 33 | } 34 | 35 | if (!(is_array($nodeID) === true || is_string($nodeID) === true)) { 36 | throw new InvalidArgumentException("invalid node_id"); 37 | } 38 | 39 | if (is_array($nodeID) === true) { 40 | $nodeID = implode(',', $nodeID); 41 | } 42 | 43 | $this->nodeID = $nodeID; 44 | 45 | return $this; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Nodes/HotThreads.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class HotThreads extends AbstractNodesEndpoint 15 | { 16 | /** 17 | * @return string 18 | */ 19 | public function getURI() 20 | { 21 | $node_id = $this->nodeID; 22 | $uri = "/_cluster/nodes/hotthreads"; 23 | 24 | if (isset($node_id) === true) { 25 | $uri = "/_cluster/nodes/$node_id/hotthreads"; 26 | } 27 | 28 | return $uri; 29 | } 30 | 31 | /** 32 | * @return string[] 33 | */ 34 | public function getParamWhitelist() 35 | { 36 | return array( 37 | 'interval', 38 | 'snapshots', 39 | 'threads', 40 | 'type', 41 | ); 42 | } 43 | 44 | /** 45 | * @return string 46 | */ 47 | public function getMethod() 48 | { 49 | return 'GET'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Nodes/Shutdown.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class Shutdown extends AbstractNodesEndpoint 15 | { 16 | /** 17 | * @return string 18 | */ 19 | public function getURI() 20 | { 21 | $node_id = $this->nodeID; 22 | $uri = "/_shutdown"; 23 | 24 | if (isset($node_id) === true) { 25 | $uri = "/_cluster/nodes/$node_id/_shutdown"; 26 | } 27 | 28 | return $uri; 29 | } 30 | 31 | /** 32 | * @return string[] 33 | */ 34 | public function getParamWhitelist() 35 | { 36 | return array( 37 | 'delay', 38 | 'exit', 39 | ); 40 | } 41 | 42 | /** 43 | * @return string 44 | */ 45 | public function getMethod() 46 | { 47 | return 'POST'; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/PendingTasks.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class PendingTasks extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $uri = "/_cluster/pending_tasks"; 24 | 25 | return $uri; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return array( 34 | 'local', 35 | 'master_timeout', 36 | ); 37 | } 38 | 39 | /** 40 | * @return string 41 | */ 42 | public function getMethod() 43 | { 44 | return 'GET'; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/RemoteInfo.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class RemoteInfo extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | return "/_remote/info"; 24 | } 25 | 26 | /** 27 | * @return string[] 28 | */ 29 | public function getParamWhitelist() 30 | { 31 | return []; 32 | } 33 | 34 | /** 35 | * @return string 36 | */ 37 | public function getMethod() 38 | { 39 | return 'GET'; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Reroute.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Reroute extends AbstractEndpoint 18 | { 19 | /** 20 | * @param array $body 21 | * 22 | * @throws \Elasticsearch\Common\Exceptions\InvalidArgumentException 23 | * @return $this 24 | */ 25 | public function setBody($body) 26 | { 27 | if (isset($body) !== true) { 28 | return $this; 29 | } 30 | 31 | $this->body = $body; 32 | 33 | return $this; 34 | } 35 | 36 | /** 37 | * @return string 38 | */ 39 | public function getURI() 40 | { 41 | $uri = "/_cluster/reroute"; 42 | 43 | return $uri; 44 | } 45 | 46 | /** 47 | * @return string[] 48 | */ 49 | public function getParamWhitelist() 50 | { 51 | return array( 52 | 'dry_run', 53 | 'filter_metadata', 54 | 'master_timeout', 55 | 'timeout', 56 | 'explain', 57 | 'metric' 58 | ); 59 | } 60 | 61 | /** 62 | * @return string 63 | */ 64 | public function getMethod() 65 | { 66 | return 'POST'; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Settings/Get.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | 17 | class Get extends AbstractEndpoint 18 | { 19 | /** 20 | * @return string 21 | */ 22 | public function getURI() 23 | { 24 | $uri = "/_cluster/settings"; 25 | 26 | return $uri; 27 | } 28 | 29 | /** 30 | * @return string[] 31 | */ 32 | public function getParamWhitelist() 33 | { 34 | return array( 35 | 'flat_settings', 36 | 'master_timeout', 37 | 'timeout', 38 | 'include_defaults' 39 | ); 40 | } 41 | 42 | /** 43 | * @return string 44 | */ 45 | public function getMethod() 46 | { 47 | return 'GET'; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Settings/Put.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Put extends AbstractEndpoint 18 | { 19 | /** 20 | * @param array $body 21 | * 22 | * @throws \Elasticsearch\Common\Exceptions\InvalidArgumentException 23 | * @return $this 24 | */ 25 | public function setBody($body) 26 | { 27 | if (isset($body) !== true) { 28 | return $this; 29 | } 30 | 31 | $this->body = $body; 32 | 33 | return $this; 34 | } 35 | 36 | /** 37 | * @return string 38 | */ 39 | public function getURI() 40 | { 41 | $uri = "/_cluster/settings"; 42 | 43 | return $uri; 44 | } 45 | 46 | /** 47 | * @return string[] 48 | */ 49 | public function getParamWhitelist() 50 | { 51 | return array( 52 | 'flat_settings', 53 | ); 54 | } 55 | 56 | /** 57 | * @return string 58 | */ 59 | public function getMethod() 60 | { 61 | return 'PUT'; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Alias/AbstractAliasEndpoint.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | abstract class AbstractAliasEndpoint extends AbstractEndpoint 18 | { 19 | /** @var null|string */ 20 | protected $name = null; 21 | 22 | /** 23 | * @param $name 24 | * 25 | * @throws \Elasticsearch\Common\Exceptions\InvalidArgumentException 26 | * 27 | * @return $this 28 | */ 29 | public function setName($name) 30 | { 31 | if (is_string($name) !== true) { 32 | throw new InvalidArgumentException('Name must be a string'); 33 | } 34 | $this->name = urlencode($name); 35 | 36 | return $this; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Cache/Clear.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Clear extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_cache/clear"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index/_cache/clear"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'field_data', 40 | 'fielddata', 41 | 'fields', 42 | 'filter', 43 | 'filter_cache', 44 | 'filter_keys', 45 | 'id', 46 | 'id_cache', 47 | 'index', 48 | 'recycler', 49 | 'ignore_unavailable', 50 | 'allow_no_indices', 51 | 'expand_wildcards', 52 | 'request_cache', 53 | 'request' 54 | ); 55 | } 56 | 57 | /** 58 | * @return string 59 | */ 60 | public function getMethod() 61 | { 62 | return 'POST'; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/ClearCache.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class ClearCache extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_cache/clear"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index/_cache/clear"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'field_data', 40 | 'fielddata', 41 | 'fields', 42 | 'filter', 43 | 'filter_cache', 44 | 'filter_keys', 45 | 'id', 46 | 'id_cache', 47 | 'ignore_unavailable', 48 | 'allow_no_indices', 49 | 'expand_wildcards', 50 | 'index', 51 | 'recycler', 52 | ); 53 | } 54 | 55 | /** 56 | * @return string 57 | */ 58 | public function getMethod() 59 | { 60 | return 'GET'; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Close.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Close extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | if (isset($this->index) !== true) { 26 | throw new Exceptions\RuntimeException( 27 | 'index is required for Close' 28 | ); 29 | } 30 | $index = $this->index; 31 | $uri = "/$index/_close"; 32 | 33 | if (isset($index) === true) { 34 | $uri = "/$index/_close"; 35 | } 36 | 37 | return $uri; 38 | } 39 | 40 | /** 41 | * @return string[] 42 | */ 43 | public function getParamWhitelist() 44 | { 45 | return array( 46 | 'timeout', 47 | 'master_timeout', 48 | 'ignore_unavailable', 49 | 'allow_no_indices', 50 | 'expand_wildcards', 51 | ); 52 | } 53 | 54 | /** 55 | * @return string 56 | */ 57 | public function getMethod() 58 | { 59 | return 'POST'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Delete.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Delete extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/$index"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'timeout', 40 | 'master_timeout', 41 | 'ignore_unavailable', 42 | 'allow_no_indices' 43 | ); 44 | } 45 | 46 | /** 47 | * @return string 48 | */ 49 | public function getMethod() 50 | { 51 | return 'DELETE'; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Exists.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Exists extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | if (isset($this->index) !== true) { 26 | throw new Exceptions\RuntimeException( 27 | 'index is required for Exists' 28 | ); 29 | } 30 | $index = $this->index; 31 | $uri = "/$index"; 32 | 33 | if (isset($index) === true) { 34 | $uri = "/$index"; 35 | } 36 | 37 | return $uri; 38 | } 39 | 40 | /** 41 | * @return string[] 42 | */ 43 | public function getParamWhitelist() 44 | { 45 | return array( 46 | 'ignore_unavailable', 47 | 'allow_no_indices', 48 | 'expand_wildcards', 49 | 'local', 50 | ); 51 | } 52 | 53 | /** 54 | * @return string 55 | */ 56 | public function getMethod() 57 | { 58 | return 'HEAD'; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Flush.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Flush extends AbstractEndpoint 17 | { 18 | protected $synced = false; 19 | 20 | public function setSynced($synced) 21 | { 22 | $this->synced = $synced; 23 | } 24 | 25 | /** 26 | * @return string 27 | */ 28 | public function getURI() 29 | { 30 | $index = $this->index; 31 | $uri = "/_flush"; 32 | 33 | if (isset($index) === true) { 34 | $uri = "/$index/_flush"; 35 | } 36 | 37 | if ($this->synced === true) { 38 | $uri .= "/synced"; 39 | } 40 | 41 | return $uri; 42 | } 43 | 44 | /** 45 | * @return string[] 46 | */ 47 | public function getParamWhitelist() 48 | { 49 | return array( 50 | 'force', 51 | 'full', 52 | 'ignore_unavailable', 53 | 'allow_no_indices', 54 | 'expand_wildcards', 55 | 'wait_if_ongoing' 56 | ); 57 | } 58 | 59 | /** 60 | * @return string 61 | */ 62 | public function getMethod() 63 | { 64 | return 'GET'; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/ForceMerge.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class ForceMerge extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_forcemerge"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index/_forcemerge"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'flush', 40 | 'ignore_unavailable', 41 | 'allow_no_indices', 42 | 'expand_wildcards', 43 | 'max_num_segments', 44 | 'only_expunge_deletes', 45 | 'operation_threading', 46 | 'wait_for_merge', 47 | ); 48 | } 49 | 50 | /** 51 | * @return string 52 | */ 53 | public function getMethod() 54 | { 55 | return 'POST'; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Gateway/Snapshot.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Snapshot extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_gateway/snapshot"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index/_gateway/snapshot"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'ignore_unavailable', 40 | 'allow_no_indices', 41 | 'expand_wildcards' 42 | ); 43 | } 44 | 45 | /** 46 | * @return string 47 | */ 48 | public function getMethod() 49 | { 50 | return 'POST'; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Mapping/Get.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Get extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $type = $this->type; 25 | $uri = "/_mapping"; 26 | 27 | if (isset($index) === true && isset($type) === true) { 28 | $uri = "/$index/_mapping/$type"; 29 | } elseif (isset($type) === true) { 30 | $uri = "/_mapping/$type"; 31 | } elseif (isset($index) === true) { 32 | $uri = "/$index/_mapping"; 33 | } 34 | 35 | return $uri; 36 | } 37 | 38 | /** 39 | * @return string[] 40 | */ 41 | public function getParamWhitelist() 42 | { 43 | return array( 44 | 'ignore_unavailable', 45 | 'allow_no_indices', 46 | 'expand_wildcards', 47 | 'wildcard_expansion', 48 | 'local', 49 | ); 50 | } 51 | 52 | /** 53 | * @return string 54 | */ 55 | public function getMethod() 56 | { 57 | return 'GET'; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Open.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Open extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | if (isset($this->index) !== true) { 26 | throw new Exceptions\RuntimeException( 27 | 'index is required for Open' 28 | ); 29 | } 30 | $index = $this->index; 31 | $uri = "/$index/_open"; 32 | 33 | if (isset($index) === true) { 34 | $uri = "/$index/_open"; 35 | } 36 | 37 | return $uri; 38 | } 39 | 40 | /** 41 | * @return string[] 42 | */ 43 | public function getParamWhitelist() 44 | { 45 | return array( 46 | 'timeout', 47 | 'master_timeout', 48 | 'ignore_unavailable', 49 | 'allow_no_indices', 50 | 'expand_wildcards', 51 | ); 52 | } 53 | 54 | /** 55 | * @return string 56 | */ 57 | public function getMethod() 58 | { 59 | return 'POST'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Recovery.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Recovery extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_recovery"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index/_recovery"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'detailed', 40 | 'active_only', 41 | 'human' 42 | ); 43 | } 44 | 45 | /** 46 | * @return string 47 | */ 48 | public function getMethod() 49 | { 50 | return 'GET'; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Refresh.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Refresh extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_refresh"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index/_refresh"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'ignore_unavailable', 40 | 'allow_no_indices', 41 | 'expand_wildcards', 42 | 'force', 43 | 'operation_threading', 44 | ); 45 | } 46 | 47 | /** 48 | * @return string 49 | */ 50 | public function getMethod() 51 | { 52 | return 'GET'; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Seal.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Seal extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | $index = $this->index; 26 | $uri = "/_seal"; 27 | 28 | if (isset($index) === true) { 29 | $uri = "/$index/_seal"; 30 | } 31 | 32 | return $uri; 33 | } 34 | 35 | /** 36 | * @return string[] 37 | */ 38 | public function getParamWhitelist() 39 | { 40 | return array(); 41 | } 42 | 43 | /** 44 | * @return string 45 | */ 46 | public function getMethod() 47 | { 48 | return 'POST'; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Segments.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Segments extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_segments"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index/_segments"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'ignore_unavailable', 40 | 'allow_no_indices', 41 | 'expand_wildcards', 42 | 'human', 43 | 'operation_threading', 44 | ); 45 | } 46 | 47 | /** 48 | * @return string 49 | */ 50 | public function getMethod() 51 | { 52 | return 'GET'; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/ShardStores.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | 18 | class ShardStores extends AbstractEndpoint 19 | { 20 | /** 21 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 22 | * @return string 23 | */ 24 | public function getURI() 25 | { 26 | $index = $this->index; 27 | $uri = "/_shard_stores"; 28 | 29 | if (isset($index) === true) { 30 | $uri = "/$index/_shard_stores"; 31 | } 32 | 33 | return $uri; 34 | } 35 | 36 | 37 | /** 38 | * @return string[] 39 | */ 40 | public function getParamWhitelist() 41 | { 42 | return array( 43 | 'status', 44 | 'ignore_unavailable', 45 | 'allow_no_indices', 46 | 'expand_wildcards', 47 | 'operation_threading' 48 | ); 49 | } 50 | 51 | 52 | /** 53 | * @return string 54 | */ 55 | public function getMethod() 56 | { 57 | return 'GET'; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Snapshotindex.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Snapshotindex extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_gateway/snapshot"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index/_gateway/snapshot"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'ignore_unavailable', 40 | 'allow_no_indices', 41 | 'expand_wildcards', 42 | ); 43 | } 44 | 45 | /** 46 | * @return string 47 | */ 48 | public function getMethod() 49 | { 50 | return 'POST'; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Status.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Status extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | $index = $this->index; 24 | $uri = "/_status"; 25 | 26 | if (isset($index) === true) { 27 | $uri = "/$index/_status"; 28 | } 29 | 30 | return $uri; 31 | } 32 | 33 | /** 34 | * @return string[] 35 | */ 36 | public function getParamWhitelist() 37 | { 38 | return array( 39 | 'ignore_unavailable', 40 | 'allow_no_indices', 41 | 'expand_wildcards', 42 | 'human', 43 | 'operation_threading', 44 | 'recovery', 45 | 'snapshot', 46 | ); 47 | } 48 | 49 | /** 50 | * @return string 51 | */ 52 | public function getMethod() 53 | { 54 | return 'GET'; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Template/AbstractTemplateEndpoint.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | abstract class AbstractTemplateEndpoint extends AbstractEndpoint 17 | { 18 | /** @var string */ 19 | protected $name; 20 | 21 | /** 22 | * @param $name 23 | * 24 | * @return $this 25 | */ 26 | public function setName($name) 27 | { 28 | $this->name = $name; 29 | 30 | return $this; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Type/Exists.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Exists extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | if (isset($this->index) !== true) { 26 | throw new Exceptions\RuntimeException( 27 | 'index is required for Exists' 28 | ); 29 | } 30 | if (isset($this->type) !== true) { 31 | throw new Exceptions\RuntimeException( 32 | 'type is required for Exists' 33 | ); 34 | } 35 | $uri = "/{$this->index}/_mapping/{$this->type}"; 36 | 37 | return $uri; 38 | } 39 | 40 | /** 41 | * @return string[] 42 | */ 43 | public function getParamWhitelist() 44 | { 45 | return array( 46 | 'ignore_unavailable', 47 | 'allow_no_indices', 48 | 'expand_wildcards', 49 | 'local', 50 | ); 51 | } 52 | 53 | /** 54 | * @return string 55 | */ 56 | public function getMethod() 57 | { 58 | return 'HEAD'; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Upgrade/Get.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elastic.co 21 | */ 22 | 23 | class Get extends AbstractEndpoint 24 | { 25 | 26 | /** 27 | * @return string 28 | */ 29 | public function getURI() 30 | { 31 | $index = $this->index; 32 | $uri = "/_upgrade"; 33 | 34 | if (isset($index) === true) { 35 | $uri = "/$index/_upgrade"; 36 | } 37 | 38 | 39 | return $uri; 40 | } 41 | 42 | 43 | /** 44 | * @return string[] 45 | */ 46 | public function getParamWhitelist() 47 | { 48 | return array( 49 | 'wait_for_completion', 50 | 'only_ancient_segments', 51 | 'ignore_unavailable', 52 | 'allow_no_indices', 53 | 'expand_wildcards', 54 | ); 55 | } 56 | 57 | 58 | /** 59 | * @return string 60 | */ 61 | public function getMethod() 62 | { 63 | return 'GET'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Upgrade/Post.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elastic.co 21 | */ 22 | 23 | class Post extends AbstractEndpoint 24 | { 25 | 26 | /** 27 | * @return string 28 | */ 29 | public function getURI() 30 | { 31 | $index = $this->index; 32 | $uri = "/_upgrade"; 33 | 34 | if (isset($index) === true) { 35 | $uri = "/$index/_upgrade"; 36 | } 37 | 38 | 39 | return $uri; 40 | } 41 | 42 | 43 | /** 44 | * @return string[] 45 | */ 46 | public function getParamWhitelist() 47 | { 48 | return array( 49 | 'wait_for_completion', 50 | 'only_ancient_segments', 51 | 'ignore_unavailable', 52 | 'allow_no_indices', 53 | 'expand_wildcards', 54 | ); 55 | } 56 | 57 | 58 | /** 59 | * @return string 60 | */ 61 | public function getMethod() 62 | { 63 | return 'POST'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Info.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class Info extends AbstractEndpoint 15 | { 16 | /** 17 | * @return string 18 | */ 19 | public function getURI() 20 | { 21 | $uri = "/"; 22 | 23 | return $uri; 24 | } 25 | 26 | /** 27 | * @return string[] 28 | */ 29 | public function getParamWhitelist() 30 | { 31 | return array( 32 | ); 33 | } 34 | 35 | /** 36 | * @return string 37 | */ 38 | public function getMethod() 39 | { 40 | return 'GET'; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ingest/Pipeline/Delete.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Delete extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | if (isset($this->id) !== true) { 26 | throw new Exceptions\RuntimeException( 27 | 'id is required for DeletePipeline' 28 | ); 29 | } 30 | $id = $this->id; 31 | $uri = "/_ingest/pipeline/$id"; 32 | 33 | return $uri; 34 | } 35 | 36 | /** 37 | * @return string[] 38 | */ 39 | public function getParamWhitelist() 40 | { 41 | return array( 42 | 'master_timeout', 43 | 'timeout' 44 | ); 45 | } 46 | 47 | /** 48 | * @return string 49 | */ 50 | public function getMethod() 51 | { 52 | return 'DELETE'; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ingest/Pipeline/Get.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Get extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | if (isset($this->id) !== true) { 26 | return '/_ingest/pipeline/*'; 27 | } 28 | 29 | $id = $this->id; 30 | 31 | return "/_ingest/pipeline/$id"; 32 | } 33 | 34 | /** 35 | * @return string[] 36 | */ 37 | public function getParamWhitelist() 38 | { 39 | return array( 40 | 'master_timeout' 41 | ); 42 | } 43 | 44 | /** 45 | * @return string 46 | */ 47 | public function getMethod() 48 | { 49 | return 'GET'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ingest/ProcessorGrok.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class ProcessorGrok extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | return "/_ingest/processor/grok"; 26 | } 27 | 28 | /** 29 | * @return string[] 30 | */ 31 | public function getParamWhitelist() 32 | { 33 | return []; 34 | } 35 | 36 | /** 37 | * @return string 38 | */ 39 | public function getMethod() 40 | { 41 | return 'GET'; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ingest/Simulate.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Simulate extends AbstractEndpoint 18 | { 19 | /** 20 | * @param array $body 21 | * 22 | * @throws \Elasticsearch\Common\Exceptions\InvalidArgumentException 23 | * @return $this 24 | */ 25 | public function setBody($body) 26 | { 27 | if (isset($body) !== true) { 28 | return $this; 29 | } 30 | 31 | $this->body = $body; 32 | 33 | return $this; 34 | } 35 | 36 | /** 37 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 38 | * @return string 39 | */ 40 | public function getURI() 41 | { 42 | if (isset($this->id) === true) { 43 | return "/_ingest/pipeline/{$this->id}/_simulate"; 44 | } 45 | return "/_ingest/pipeline/_simulate"; 46 | } 47 | 48 | /** 49 | * @return string[] 50 | */ 51 | public function getParamWhitelist() 52 | { 53 | return array( 54 | 'verbose', 55 | ); 56 | } 57 | 58 | /** 59 | * @return string 60 | */ 61 | public function getMethod() 62 | { 63 | return 'GET'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ping.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class Ping extends AbstractEndpoint 15 | { 16 | /** 17 | * @return string 18 | */ 19 | public function getURI() 20 | { 21 | $uri = "/"; 22 | 23 | return $uri; 24 | } 25 | 26 | /** 27 | * @return string[] 28 | */ 29 | public function getParamWhitelist() 30 | { 31 | return array( 32 | ); 33 | } 34 | 35 | /** 36 | * @return string 37 | */ 38 | public function getMethod() 39 | { 40 | return 'HEAD'; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Reindex.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class Reindex extends AbstractEndpoint 15 | { 16 | 17 | /** 18 | * @return string[] 19 | */ 20 | public function getParamWhitelist() 21 | { 22 | return array( 23 | 'slices', 24 | 'refresh', 25 | 'timeout', 26 | 'consistency', 27 | 'wait_for_completion', 28 | 'requests_per_second', 29 | ); 30 | } 31 | 32 | /** 33 | * @return string 34 | */ 35 | public function getURI() 36 | { 37 | return '/_reindex'; 38 | } 39 | 40 | /** 41 | * @return string 42 | */ 43 | public function getMethod() 44 | { 45 | return 'POST'; 46 | } 47 | 48 | /** 49 | * @param array $body 50 | * 51 | * @throws \Elasticsearch\Common\Exceptions\InvalidArgumentException 52 | * @return $this 53 | */ 54 | public function setBody($body) 55 | { 56 | if (isset($body) !== true) { 57 | return $this; 58 | } 59 | 60 | $this->body = $body; 61 | 62 | return $this; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Remote/Info.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class Info extends AbstractEndpoint 17 | { 18 | /** 19 | * @return string 20 | */ 21 | public function getURI() 22 | { 23 | return "/_remote/info"; 24 | } 25 | 26 | /** 27 | * @return string[] 28 | */ 29 | public function getParamWhitelist() 30 | { 31 | return array(); 32 | } 33 | 34 | /** 35 | * @return string 36 | */ 37 | public function getMethod() 38 | { 39 | return 'GET'; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/SearchShards.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | class SearchShards extends AbstractEndpoint 15 | { 16 | /** 17 | * @return string 18 | */ 19 | public function getURI() 20 | { 21 | $index = $this->index; 22 | $type = $this->type; 23 | $uri = "/_search_shards"; 24 | 25 | if (isset($index) === true && isset($type) === true) { 26 | $uri = "/$index/$type/_search_shards"; 27 | } elseif (isset($index) === true) { 28 | $uri = "/$index/_search_shards"; 29 | } elseif (isset($type) === true) { 30 | $uri = "/_all/$type/_search_shards"; 31 | } 32 | 33 | return $uri; 34 | } 35 | 36 | /** 37 | * @return string[] 38 | */ 39 | public function getParamWhitelist() 40 | { 41 | return array( 42 | 'preference', 43 | 'routing', 44 | 'local', 45 | 'ignore_unavailable', 46 | 'allow_no_indices', 47 | 'expand_wildcards' 48 | ); 49 | } 50 | 51 | /** 52 | * @return string 53 | */ 54 | public function getMethod() 55 | { 56 | return 'GET'; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Tasks/Get.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Get extends AbstractEndpoint 18 | { 19 | private $taskId; 20 | 21 | /** 22 | * @param string $taskId 23 | * 24 | * @throws \Elasticsearch\Common\Exceptions\InvalidArgumentException 25 | * @return $this 26 | */ 27 | public function setTaskId($taskId) 28 | { 29 | if (isset($taskId) !== true) { 30 | return $this; 31 | } 32 | 33 | $this->taskId = $taskId; 34 | 35 | return $this; 36 | } 37 | 38 | /** 39 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 40 | * @return string 41 | */ 42 | public function getURI() 43 | { 44 | if (isset($this->taskId) === true) { 45 | return "/_tasks/{$this->taskId}"; 46 | } 47 | 48 | return "/_tasks"; 49 | } 50 | 51 | /** 52 | * @return string[] 53 | */ 54 | public function getParamWhitelist() 55 | { 56 | return array( 57 | 'wait_for_completion' 58 | ); 59 | } 60 | 61 | /** 62 | * @return string 63 | */ 64 | public function getMethod() 65 | { 66 | return 'GET'; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Tasks/TasksList.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class TasksList extends AbstractEndpoint 18 | { 19 | 20 | /** 21 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 22 | * @return string 23 | */ 24 | public function getURI() 25 | { 26 | return "/_tasks"; 27 | } 28 | 29 | /** 30 | * @return string[] 31 | */ 32 | public function getParamWhitelist() 33 | { 34 | return array( 35 | 'node_id', 36 | 'actions', 37 | 'detailed', 38 | 'parent_node', 39 | 'parent_task', 40 | 'wait_for_completion', 41 | 'group_by', 42 | 'task_id' 43 | ); 44 | } 45 | 46 | /** 47 | * @return string 48 | */ 49 | public function getMethod() 50 | { 51 | return 'GET'; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Template/Delete.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Delete extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | if (isset($this->id) !== true) { 26 | throw new Exceptions\RuntimeException( 27 | 'id is required for Delete' 28 | ); 29 | } 30 | $templateId = $this->id; 31 | $uri = "/_search/template/$templateId"; 32 | 33 | return $uri; 34 | } 35 | 36 | /** 37 | * @return string[] 38 | */ 39 | public function getParamWhitelist() 40 | { 41 | return array(); 42 | } 43 | 44 | /** 45 | * @return string 46 | */ 47 | public function getMethod() 48 | { 49 | return 'DELETE'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Template/Get.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elastic.co 16 | */ 17 | class Get extends AbstractEndpoint 18 | { 19 | /** 20 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 21 | * @return string 22 | */ 23 | public function getURI() 24 | { 25 | if (isset($this->id) !== true) { 26 | throw new Exceptions\RuntimeException( 27 | 'id is required for Get' 28 | ); 29 | } 30 | $templateId = $this->id; 31 | $uri = "/_search/template/$templateId"; 32 | 33 | return $uri; 34 | } 35 | 36 | /** 37 | * @return string[] 38 | */ 39 | public function getParamWhitelist() 40 | { 41 | return array(); 42 | } 43 | 44 | /** 45 | * @return string 46 | */ 47 | public function getMethod() 48 | { 49 | return 'GET'; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Namespaces/NamespaceBuilderInterface.php: -------------------------------------------------------------------------------- 1 | 8 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 9 | * @link http://elastic.co 10 | */ 11 | 12 | namespace Elasticsearch\Namespaces; 13 | 14 | use Elasticsearch\Serializers\SerializerInterface; 15 | use Elasticsearch\Transport; 16 | 17 | interface NamespaceBuilderInterface 18 | { 19 | /** 20 | * Returns the name of the namespace. This is what users will call, e.g. the name 21 | * "foo" will be invoked by the user as `$client->foo()` 22 | * @return string 23 | */ 24 | public function getName(); 25 | 26 | /** 27 | * Returns the actual namespace object which contains your custom methods. The transport 28 | * and serializer objects are provided so that your namespace may do whatever custom 29 | * logic is required. 30 | * 31 | * @param Transport $transport 32 | * @param SerializerInterface $serializer 33 | * @return Object 34 | */ 35 | public function getObject(Transport $transport, SerializerInterface $serializer); 36 | } 37 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Namespaces/RemoteNamespace.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class RemoteNamespace extends AbstractNamespace 17 | { 18 | /** 19 | * @param $params array Associative array of parameters 20 | * 21 | * @return array 22 | */ 23 | public function info($params = array()) 24 | { 25 | /** @var callback $endpointBuilder */ 26 | $endpointBuilder = $this->endpoints; 27 | 28 | /** @var Info $endpoint */ 29 | $endpoint = $endpointBuilder('Remote\Info'); 30 | $endpoint->setParams($params); 31 | 32 | return $this->performRequest($endpoint); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/ArrayToJSONSerializer.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class ArrayToJSONSerializer implements SerializerInterface 17 | { 18 | /** 19 | * Serialize assoc array into JSON string 20 | * 21 | * @param string|array $data Assoc array to encode into JSON 22 | * 23 | * @return string 24 | */ 25 | public function serialize($data) 26 | { 27 | if (is_string($data) === true) { 28 | return $data; 29 | } else { 30 | $data = json_encode($data, JSON_PRESERVE_ZERO_FRACTION); 31 | if ($data === false) { 32 | throw new RuntimeException("Failed to JSON encode: ".json_last_error()); 33 | } 34 | if ($data === '[]') { 35 | return '{}'; 36 | } else { 37 | return $data; 38 | } 39 | } 40 | } 41 | 42 | /** 43 | * Deserialize JSON into an assoc array 44 | * 45 | * @param string $data JSON encoded string 46 | * @param array $headers Response Headers 47 | * 48 | * @return array 49 | */ 50 | public function deserialize($data, $headers) 51 | { 52 | return json_decode($data, true); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/EverythingToJSONSerializer.php: -------------------------------------------------------------------------------- 1 | 13 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 14 | * @link http://elastic.co 15 | */ 16 | class EverythingToJSONSerializer implements SerializerInterface 17 | { 18 | /** 19 | * Serialize assoc array into JSON string 20 | * 21 | * @param string|array $data Assoc array to encode into JSON 22 | * 23 | * @return string 24 | */ 25 | public function serialize($data) 26 | { 27 | $data = json_encode($data, JSON_PRESERVE_ZERO_FRACTION); 28 | if ($data === false) { 29 | throw new RuntimeException("Failed to JSON encode: ".json_last_error()); 30 | } 31 | if ($data === '[]') { 32 | return '{}'; 33 | } else { 34 | return $data; 35 | } 36 | } 37 | 38 | /** 39 | * Deserialize JSON into an assoc array 40 | * 41 | * @param string $data JSON encoded string 42 | * @param array $headers Response headers 43 | * 44 | * @return array 45 | */ 46 | public function deserialize($data, $headers) 47 | { 48 | return json_decode($data, true); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/SerializerInterface.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elastic.co 13 | */ 14 | interface SerializerInterface 15 | { 16 | /** 17 | * Serialize a complex data-structure into a json encoded string 18 | * 19 | * @param mixed The data to encode 20 | * 21 | * @return string 22 | */ 23 | public function serialize($data); 24 | 25 | /** 26 | * Deserialize json encoded string into an associative array 27 | * 28 | * @param string $data JSON encoded string 29 | * @param array $headers Response Headers 30 | * 31 | * @return array 32 | */ 33 | public function deserialize($data, $headers); 34 | } 35 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/ClientBuilder/DummyLogger.php: -------------------------------------------------------------------------------- 1 | expectException(InvalidArgumentException::class); 17 | $this->expectExceptionMessage('$logger must implement \Psr\Log\LoggerInterface!'); 18 | 19 | ClientBuilder::create()->setLogger(new \Elasticsearch\Tests\ClientBuilder\DummyLogger()); 20 | } 21 | 22 | public function testClientBuilderThrowsExceptionForIncorrectTracerClass() 23 | { 24 | $this->expectException(InvalidArgumentException::class); 25 | $this->expectExceptionMessage('$tracer must implement \Psr\Log\LoggerInterface!'); 26 | 27 | ClientBuilder::create()->setTracer(new \Elasticsearch\Tests\ClientBuilder\DummyLogger()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/ClientIntegrationTests.php: -------------------------------------------------------------------------------- 1 | 16 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 17 | * @link http://elasticsearch.org 18 | */ 19 | class ClientIntegrationTests extends \PHPUnit\Framework\TestCase 20 | { 21 | public function testCustomQueryParams() 22 | { 23 | $client = Elasticsearch\ClientBuilder::create()->setHosts([$_SERVER['ES_TEST_HOST']])->build(); 24 | 25 | $getParams = [ 26 | 'index' => 'test', 27 | 'type' => 'test', 28 | 'id' => 1, 29 | 'parent' => 'abc', 30 | 'custom' => ['customToken' => 'abc', 'otherToken' => 123], 31 | 'client' => ['ignore' => 400] 32 | ]; 33 | $exists = $client->exists($getParams); 34 | 35 | $this->assertFalse($exists); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/ConnectionPool/SniffingConnectionPoolIntegrationTest.php: -------------------------------------------------------------------------------- 1 | 17 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 18 | * @link http://elasticsearch.org 19 | */ 20 | class SniffingConnectionPoolIntegrationTest extends \PHPUnit\Framework\TestCase 21 | { 22 | public function testSniff() 23 | { 24 | $client = ClientBuilder::create() 25 | ->setHosts([$_SERVER['ES_TEST_HOST']]) 26 | ->setConnectionPool(SniffingConnectionPool::class, ['sniffingInterval' => -10]) 27 | ->build(); 28 | 29 | $pinged = $client->ping(); 30 | $this->assertTrue($pinged); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/ConnectionPool/StaticConnectionPoolIntegrationTest.php: -------------------------------------------------------------------------------- 1 | 14 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 15 | * @link http://elasticsearch.org 16 | */ 17 | class StaticConnectionPoolIntegrationTest extends \PHPUnit\Framework\TestCase 18 | { 19 | // Issue #636 20 | public function test404Liveness() 21 | { 22 | $client = \Elasticsearch\ClientBuilder::create() 23 | ->setHosts([$_SERVER['ES_TEST_HOST']]) 24 | ->setConnectionPool(\Elasticsearch\ConnectionPool\StaticConnectionPool::class) 25 | ->build(); 26 | 27 | $connection = $client->transport->getConnection(); 28 | 29 | // Ensure connection is dead 30 | $connection->markDead(); 31 | 32 | // The index doesn't exist, but the server is up so this will return a 404 33 | $this->assertFalse($client->indices()->exists(['index' => 'not_existing_index'])); 34 | 35 | // But the node should be marked as alive since the server responded 36 | $this->assertTrue($connection->isAlive()); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/Endpoints/AbstractEndpointTest.php: -------------------------------------------------------------------------------- 1 | 10]], 17 | [['invalid' => 10, 'invalid2' => 'another']], 18 | ]; 19 | } 20 | 21 | /** 22 | * @dataProvider invalidParameters 23 | * @expectedException \Elasticsearch\Common\Exceptions\UnexpectedValueException 24 | */ 25 | public function testInvalidParamsCauseErrorsWhenProvidedToSetParams(array $params) 26 | { 27 | $this->endpoint->expects($this->once()) 28 | ->method('getParamWhitelist') 29 | ->willReturn(['one', 'two']); 30 | 31 | $this->endpoint->setParams($params); 32 | } 33 | 34 | protected function setUp() 35 | { 36 | $this->endpoint = $this->getMockForAbstractClass(AbstractEndpoint::class); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/Serializers/ArrayToJSONSerializerTest.php: -------------------------------------------------------------------------------- 1 | 'field']; 26 | 27 | $ret = $serializer->serialize($body); 28 | 29 | $body = json_encode($body, JSON_PRESERVE_ZERO_FRACTION); 30 | $this->assertSame($body, $ret); 31 | } 32 | 33 | public function testSerializeString() 34 | { 35 | $serializer = new ArrayToJSONSerializer(); 36 | $body = 'abc'; 37 | 38 | $ret = $serializer->serialize($body); 39 | 40 | $this->assertSame($body, $ret); 41 | } 42 | 43 | public function testDeserializeJSON() 44 | { 45 | $serializer = new ArrayToJSONSerializer(); 46 | $body = '{"field":"value"}'; 47 | 48 | $ret = $serializer->deserialize($body, []); 49 | 50 | $body = json_decode($body, true); 51 | $this->assertSame($body, $ret); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/Serializers/EverythingToJSONSerializerTest.php: -------------------------------------------------------------------------------- 1 | 'field']; 26 | 27 | $ret = $serializer->serialize($body); 28 | 29 | $body = json_encode($body, JSON_PRESERVE_ZERO_FRACTION); 30 | $this->assertSame($body, $ret); 31 | } 32 | 33 | public function testSerializeString() 34 | { 35 | $serializer = new EverythingToJSONSerializer(); 36 | $body = 'abc'; 37 | 38 | $ret = $serializer->serialize($body); 39 | 40 | $body = '"abc"'; 41 | $this->assertSame($body, $ret); 42 | } 43 | 44 | public function testDeserializeJSON() 45 | { 46 | $serializer = new EverythingToJSONSerializer(); 47 | $body = '{"field":"value"}'; 48 | 49 | $ret = $serializer->deserialize($body, []); 50 | 51 | $body = json_decode($body, true); 52 | $this->assertSame($body, $ret); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | /dev/null 8 | 9 | which java 10 | java -version 11 | 12 | 13 | echo "Downloading Elasticsearch v${ES_VERSION}-SNAPSHOT..." 14 | 15 | ES_URL=$(curl -sS "https://esvm-props.kibana.rocks/builds" | jq -r ".branches[\"$ES_VERSION\"].zip") 16 | 17 | curl -L -o elasticsearch-latest-SNAPSHOT.zip $ES_URL 18 | unzip "elasticsearch-latest-SNAPSHOT.zip" 19 | 20 | echo "Adding repo to config..." 21 | find . -name "elasticsearch.yml" | while read TXT ; do echo 'repositories.url.allowed_urls: ["http://*"]' >> $TXT ; done 22 | find . -name "elasticsearch.yml" | while read TXT ; do echo 'path.repo: ["/tmp"]' >> $TXT ; done 23 | find . -name "elasticsearch.yml" | while read TXT ; do echo 'node.max_local_storage_nodes: 1' >> $TXT ; done 24 | find . -name "elasticsearch.yml" | while read TXT ; do echo 'cluster.routing.allocation.disk.watermark.low: 0.1%' >> $TXT ; done 25 | find . -name "elasticsearch.yml" | while read TXT ; do echo 'cluster.routing.allocation.disk.watermark.high: 0.1%' >> $TXT ; done 26 | find . -name "elasticsearch.yml" | while read TXT ; do echo 'node.attr.testattr: test' >> $TXT ; done 27 | find . -name "elasticsearch.yml" | while read TXT ; do echo 'script.max_compilations_rate: 2048/1m' >> $TXT ; done 28 | 29 | echo "Starting Elasticsearch v${ES_VERSION}" 30 | 31 | ./elasticsearch-*/bin/elasticsearch -d 32 | 33 | 34 | sleep 3 35 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/travis/generate_docs.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | curl -O http://get.sensiolabs.org/sami.phar 4 | php sami.phar update --force -v util/docsConfig.php 5 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/util/EnsureClusterAlive.php: -------------------------------------------------------------------------------- 1 | [$_SERVER['ES_TEST_HOST']] 22 | ]); 23 | 24 | $count = 0; 25 | while (!$client->ping()) { 26 | $count += 1; 27 | 28 | if ($count > 15) { 29 | echo "Live cluster could not be found in 15s!\nContents of elasticsearch.log:\n\n"; 30 | 31 | $dir = new DirectoryIterator(dirname(__DIR__)); 32 | 33 | foreach ($dir as $fileinfo) { 34 | if ($fileinfo->isDir() && !$fileinfo->isDot()) { 35 | if (strpos($fileinfo->getFilename(), "elasticsearch") === 0) { 36 | $log = file_get_contents(dirname(__DIR__)."/$fileinfo/logs/elasticsearch.log"); 37 | echo $log; 38 | break; 39 | } 40 | 41 | } 42 | } 43 | 44 | throw new \Exception(); 45 | } 46 | sleep(1); 47 | } 48 | 49 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/util/RestSpecRunner.php: -------------------------------------------------------------------------------- 1 | [$_SERVER['ES_TEST_HOST']] 24 | ]); 25 | $serverInfo = $client->info(); 26 | var_dump($serverInfo); 27 | 28 | $gitWrapper = new \GitWrapper\GitWrapper(); 29 | echo "Git cwd: ".dirname(__DIR__) . "/util/elasticsearch\n"; 30 | $git = $gitWrapper->workingCopy(dirname(__DIR__) . '/util/elasticsearch'); 31 | 32 | echo "Update elasticsearch submodule\n"; 33 | $git->fetchAll(array('verbose' => true)); 34 | 35 | $hash = $serverInfo['version']['build_hash']; 36 | echo "Checkout yaml tests (hash: $hash)\n"; 37 | $git->checkout($hash, array('force' => true, 'quiet' => true)); 38 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/util/docsConfig.php: -------------------------------------------------------------------------------- 1 | files() 10 | ->name('*Namespace.php') 11 | ->name("Client.php") 12 | ->name("ClientBuilder.php") 13 | ->notName("AbstractNamespace.php") 14 | ->in(__DIR__.'/../src/'); 15 | 16 | return new Sami($iterator, [ 17 | 'theme' => 'asciidoc', 18 | 'template_dirs' => [__DIR__.'/docstheme/'], 19 | 'title' => 'Elasticsearch-php', 20 | 'build_dir' => __DIR__.'/../docs/build', 21 | 'cache_dir' => __DIR__.'/cache/', 22 | ]); 23 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/util/docstheme/layout/base.twig: -------------------------------------------------------------------------------- 1 | {% from "macros.twig" import replace_backslash, sanitize %} 2 | 3 | {% block title %} 4 | {% set parts = title|split("\\") %} 5 | {% set path = parts|slice(0, -1)|join("\\") %} 6 | {% set name = parts|slice(-1, 1)|join("\\") %} 7 | 8 | [[{{ sanitize(replace_backslash(title)) }}]] 9 | === {{ title }} 10 | 11 | {% endblock %} 12 | {% block content %} 13 | {% endblock %} 14 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/util/docstheme/manifest.yml: -------------------------------------------------------------------------------- 1 | name: asciidoc 2 | 3 | global: 4 | "pages/namespaces.twig": "namespaces.asciidoc" 5 | "pages/interfaces.twig": "interfaces.asciidoc" 6 | "pages/classes.twig": "classes.asciidoc" 7 | 8 | class: 9 | "pages/class.twig": "%s.asciidoc" 10 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/util/docstheme/pages/classes.twig: -------------------------------------------------------------------------------- 1 | {% extends "layout/base.twig" %} 2 | 3 | {% from "macros.twig" import class_item, replace_backslash, back_to_forward, sanitize %} 4 | 5 | {% block title %} 6 | [[{{ sanitize(replace_backslash("ElasticsearchPHP_Endpoints")) }}]] 7 | == {{ "Reference - Endpoints" }} 8 | {% endblock %} 9 | 10 | {% block content %} 11 | 12 | This is a complete list of namespaces and their associated endpoints. 13 | 14 | NOTE: This is auto-generated documentation 15 | 16 | {% for class in classes if not class.interface %} 17 | * <<{{ replace_backslash(class) }}, {{ class }}>> 18 | {% else %} 19 | * There are no endpoints available. 20 | {% endfor %} 21 | {% for class in classes if not class.interface %} 22 | include::{{ back_to_forward(class) }}.asciidoc[] 23 | {% else %} 24 | {% endfor %} 25 | {% endblock %} 26 | 27 | 28 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/util/docstheme/pages/interfaces.twig: -------------------------------------------------------------------------------- 1 | {% extends "layout/base.twig" %} 2 | 3 | {% from "macros.twig" import class_item, replace_backslash, back_to_forward, sanitize %} 4 | 5 | {% block title %} 6 | [[{{ sanitize(replace_backslash("ElasticsearchPHP_Interfaces")) }}]] 7 | == {{ "Reference - Interfaces" }} 8 | {% endblock %} 9 | 10 | {% block content %} 11 | 12 | This is a complete list of available interfaces: 13 | 14 | {% for interface in classes if interface.interface %} 15 | * <<{{ replace_backslash(interface) }}, {{ interface }}>> 16 | {% else %} 17 | * There are no interfaces available. 18 | {% endfor %} 19 | {% for interface in classes if interface.interface %} 20 | include::{{ back_to_forward(interface) }}.asciidoc[] 21 | {% else %} 22 | {% endfor %} 23 | {% endblock %} 24 | -------------------------------------------------------------------------------- /vendor/elasticsearch/elasticsearch/util/docstheme/pages/namespaces.twig: -------------------------------------------------------------------------------- 1 | {% extends "layout/base.twig" %} 2 | 3 | {% from "macros.twig" import markdown_path, replace_backslash, back_to_forward, sanitize %} 4 | 5 | {% block title %} 6 | [[{{ sanitize(replace_backslash("ElasticsearchPHP_Namespaces")) }}]] 7 | == {{ "Reference - Namespaces" }} 8 | {% endblock %} 9 | 10 | {% block content %} 11 | 12 | This is a complete list of available namespaces: 13 | 14 | {% for namespace in namespaces %} 15 | * <<{{ replace_backslash(namespace) }}, {{ namespace }}>> 16 | {% else %} 17 | * There are no namespaces available. 18 | {% endfor %} 19 | {% for namespace in namespaces %} 20 | include::{{ back_to_forward(namespace) }}.asciidoc[] 21 | {% else %} 22 | {% endfor %} 23 | {% endblock %} 24 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [{Makefile,*.mk}] 12 | indent_style = tab 13 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | build/artifacts/ 3 | composer.lock 4 | docs/_build/ 5 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | cache: 4 | directories: 5 | - $HOME/.composer/cache/files 6 | 7 | php: 8 | - 5.4 9 | - 5.5 10 | - 5.6 11 | - 7.0 12 | - 7.1 13 | - 7.2 14 | - hhvm 15 | - nightly 16 | 17 | env: 18 | global: 19 | - TEST_COMMAND="composer test" 20 | 21 | matrix: 22 | allow_failures: 23 | - php: hhvm 24 | - php: nightly 25 | fast_finish: true 26 | include: 27 | - php: 5.4 28 | env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" 29 | 30 | before_install: 31 | - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi 32 | 33 | install: 34 | # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355 35 | - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi 36 | - travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction 37 | 38 | before_script: 39 | - ~/.nvm/nvm.sh install v0.6.14 40 | - ~/.nvm/nvm.sh run v0.6.14 41 | 42 | script: 43 | - $TEST_COMMAND 44 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/Makefile: -------------------------------------------------------------------------------- 1 | all: clean coverage docs 2 | 3 | docs: 4 | cd docs && make html 5 | 6 | view-docs: 7 | open docs/_build/html/index.html 8 | 9 | start-server: stop-server 10 | node tests/Client/server.js &> /dev/null & 11 | 12 | stop-server: 13 | @PID=$(shell ps axo pid,command \ 14 | | grep 'tests/Client/server.js' \ 15 | | grep -v grep \ 16 | | cut -f 1 -d " "\ 17 | ) && [ -n "$$PID" ] && kill $$PID || true 18 | 19 | test: start-server 20 | vendor/bin/phpunit $(TEST) 21 | $(MAKE) stop-server 22 | 23 | coverage: start-server 24 | vendor/bin/phpunit --coverage-html=build/artifacts/coverage $(TEST) 25 | $(MAKE) stop-server 26 | 27 | view-coverage: 28 | open build/artifacts/coverage/index.html 29 | 30 | clean: 31 | rm -rf build/artifacts/* 32 | cd docs && make clean 33 | 34 | tag: 35 | $(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=4.2.1")) 36 | @echo Tagging $(TAG) 37 | chag update -m '$(TAG) ()' 38 | git add -A 39 | git commit -m '$(TAG) release' 40 | chag tag 41 | 42 | perf: start-server 43 | php tests/perf.php 44 | $(MAKE) stop-server 45 | 46 | .PHONY: docs 47 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/README.rst: -------------------------------------------------------------------------------- 1 | ======= 2 | RingPHP 3 | ======= 4 | 5 | Provides a simple API and specification that abstracts away the details of HTTP 6 | into a single PHP function. RingPHP be used to power HTTP clients and servers 7 | through a PHP function that accepts a request hash and returns a response hash 8 | that is fulfilled using a `promise `_, 9 | allowing RingPHP to support both synchronous and asynchronous workflows. 10 | 11 | By abstracting the implementation details of different HTTP clients and 12 | servers, RingPHP allows you to utilize pluggable HTTP clients and servers 13 | without tying your application to a specific implementation. 14 | 15 | .. code-block:: php 16 | 17 | 'GET', 25 | 'uri' => '/', 26 | 'headers' => [ 27 | 'host' => ['www.google.com'], 28 | 'x-foo' => ['baz'] 29 | ] 30 | ]); 31 | 32 | $response->then(function (array $response) { 33 | echo $response['status']; 34 | }); 35 | 36 | $response->wait(); 37 | 38 | RingPHP is inspired by Clojure's `Ring `_, 39 | which, in turn, was inspired by Python's WSGI and Ruby's Rack. RingPHP is 40 | utilized as the handler layer in `Guzzle `_ 5.0+ to send 41 | HTTP requests. 42 | 43 | Documentation 44 | ------------- 45 | 46 | See http://ringphp.readthedocs.org/ for the full online documentation. 47 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/ringphp", 3 | "description": "Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function.", 4 | "license": "MIT", 5 | "authors": [ 6 | { 7 | "name": "Michael Dowling", 8 | "email": "mtdowling@gmail.com", 9 | "homepage": "https://github.com/mtdowling" 10 | } 11 | ], 12 | "require": { 13 | "php": ">=5.4.0", 14 | "guzzlehttp/streams": "~3.0", 15 | "react/promise": "~2.0" 16 | }, 17 | "require-dev": { 18 | "ext-curl": "*", 19 | "phpunit/phpunit": "~4.0" 20 | }, 21 | "suggest": { 22 | "ext-curl": "Guzzle will use specific adapters if cURL is present" 23 | }, 24 | "autoload": { 25 | "psr-4": { 26 | "GuzzleHttp\\Ring\\": "src/" 27 | } 28 | }, 29 | "autoload-dev": { 30 | "psr-4": { 31 | "GuzzleHttp\\Tests\\Ring\\": "tests/" 32 | } 33 | }, 34 | "scripts": { 35 | "test": "make test", 36 | "test-ci": "make coverage" 37 | }, 38 | "extra": { 39 | "branch-alias": { 40 | "dev-master": "1.1-dev" 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/docs/conf.py: -------------------------------------------------------------------------------- 1 | import sys, os 2 | import sphinx_rtd_theme 3 | from sphinx.highlighting import lexers 4 | from pygments.lexers.web import PhpLexer 5 | 6 | 7 | lexers['php'] = PhpLexer(startinline=True, linenos=1) 8 | lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1) 9 | primary_domain = 'php' 10 | 11 | extensions = [] 12 | templates_path = ['_templates'] 13 | source_suffix = '.rst' 14 | master_doc = 'index' 15 | project = u'RingPHP' 16 | copyright = u'2014, Michael Dowling' 17 | version = '1.0.0-alpha' 18 | exclude_patterns = ['_build'] 19 | 20 | html_title = "RingPHP" 21 | html_short_title = "RingPHP" 22 | html_theme = "sphinx_rtd_theme" 23 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] 24 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/docs/requirements.txt: -------------------------------------------------------------------------------- 1 | sphinx_rtd_theme 2 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | tests 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/src/Exception/CancelledException.php: -------------------------------------------------------------------------------- 1 | result[$offset]); 17 | } 18 | 19 | public function offsetGet($offset) 20 | { 21 | return $this->result[$offset]; 22 | } 23 | 24 | public function offsetSet($offset, $value) 25 | { 26 | $this->result[$offset] = $value; 27 | } 28 | 29 | public function offsetUnset($offset) 30 | { 31 | unset($this->result[$offset]); 32 | } 33 | 34 | public function count() 35 | { 36 | return count($this->result); 37 | } 38 | 39 | public function getIterator() 40 | { 41 | return new \ArrayIterator($this->result); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php: -------------------------------------------------------------------------------- 1 | result = $result; 25 | $this->error = $e; 26 | } 27 | 28 | public function wait() 29 | { 30 | if ($this->error) { 31 | throw $this->error; 32 | } 33 | 34 | return $this->result; 35 | } 36 | 37 | public function cancel() {} 38 | 39 | public function promise() 40 | { 41 | if (!$this->cachedPromise) { 42 | $this->cachedPromise = $this->error 43 | ? new RejectedPromise($this->error) 44 | : new FulfilledPromise($this->result); 45 | } 46 | 47 | return $this->cachedPromise; 48 | } 49 | 50 | public function then( 51 | callable $onFulfilled = null, 52 | callable $onRejected = null, 53 | callable $onProgress = null 54 | ) { 55 | return $this->promise()->then($onFulfilled, $onRejected, $onProgress); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/src/Future/FutureArray.php: -------------------------------------------------------------------------------- 1 | _value[$offset]); 14 | } 15 | 16 | public function offsetGet($offset) 17 | { 18 | return $this->_value[$offset]; 19 | } 20 | 21 | public function offsetSet($offset, $value) 22 | { 23 | $this->_value[$offset] = $value; 24 | } 25 | 26 | public function offsetUnset($offset) 27 | { 28 | unset($this->_value[$offset]); 29 | } 30 | 31 | public function count() 32 | { 33 | return count($this->_value); 34 | } 35 | 36 | public function getIterator() 37 | { 38 | return new \ArrayIterator($this->_value); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/src/Future/FutureArrayInterface.php: -------------------------------------------------------------------------------- 1 | _value = $this->wait(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/tests/Future/CompletedFutureArrayTest.php: -------------------------------------------------------------------------------- 1 | 'bar']); 11 | $this->assertEquals('bar', $f['foo']); 12 | $this->assertFalse(isset($f['baz'])); 13 | $f['abc'] = '123'; 14 | $this->assertTrue(isset($f['abc'])); 15 | $this->assertEquals(['foo' => 'bar', 'abc' => '123'], iterator_to_array($f)); 16 | $this->assertEquals(2, count($f)); 17 | unset($f['abc']); 18 | $this->assertEquals(1, count($f)); 19 | $this->assertEquals(['foo' => 'bar'], iterator_to_array($f)); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/tests/Future/CompletedFutureValueTest.php: -------------------------------------------------------------------------------- 1 | assertEquals('hi', $f->wait()); 13 | $f->cancel(); 14 | 15 | $a = null; 16 | $f->then(function ($v) use (&$a) { 17 | $a = $v; 18 | }); 19 | $this->assertSame('hi', $a); 20 | } 21 | 22 | public function testThrows() 23 | { 24 | $ex = new \Exception('foo'); 25 | $f = new CompletedFutureValue(null, $ex); 26 | $f->cancel(); 27 | try { 28 | $f->wait(); 29 | $this->fail('did not throw'); 30 | } catch (\Exception $e) { 31 | $this->assertSame($e, $ex); 32 | } 33 | } 34 | 35 | public function testMarksAsCancelled() 36 | { 37 | $ex = new CancelledFutureAccessException(); 38 | $f = new CompletedFutureValue(null, $ex); 39 | try { 40 | $f->wait(); 41 | $this->fail('did not throw'); 42 | } catch (\Exception $e) { 43 | $this->assertSame($e, $ex); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/ringphp/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/Makefile: -------------------------------------------------------------------------------- 1 | all: clean coverage 2 | 3 | release: tag 4 | git push origin --tags 5 | 6 | tag: 7 | chag tag --sign --debug CHANGELOG.rst 8 | 9 | test: 10 | vendor/bin/phpunit 11 | 12 | coverage: 13 | vendor/bin/phpunit --coverage-html=artifacts/coverage 14 | 15 | view-coverage: 16 | open artifacts/coverage/index.html 17 | 18 | clean: 19 | rm -rf artifacts/* 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/README.rst: -------------------------------------------------------------------------------- 1 | ============== 2 | Guzzle Streams 3 | ============== 4 | 5 | Provides a simple abstraction over streams of data. 6 | 7 | This library is used in `Guzzle 5 `_, and is 8 | (currently) compatible with the WIP PSR-7. 9 | 10 | Installation 11 | ============ 12 | 13 | This package can be installed easily using `Composer `_. 14 | Simply add the following to the composer.json file at the root of your project: 15 | 16 | .. code-block:: javascript 17 | 18 | { 19 | "require": { 20 | "guzzlehttp/streams": "~3.0" 21 | } 22 | } 23 | 24 | Then install your dependencies using ``composer.phar install``. 25 | 26 | Documentation 27 | ============= 28 | 29 | The documentation for this package can be found on the main Guzzle website at 30 | http://docs.guzzlephp.org/en/guzzle4/streams.html. 31 | 32 | Testing 33 | ======= 34 | 35 | This library is tested using PHPUnit. You'll need to install the dependencies 36 | using `Composer `_ then run ``make test``. 37 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/streams", 3 | "description": "Provides a simple abstraction over streams of data", 4 | "homepage": "http://guzzlephp.org/", 5 | "keywords": ["stream", "guzzle"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.4.0" 16 | }, 17 | "require-dev": { 18 | "phpunit/phpunit": "~4.0" 19 | }, 20 | "autoload": { 21 | "psr-4": { "GuzzleHttp\\Stream\\": "src/" } 22 | }, 23 | "extra": { 24 | "branch-alias": { 25 | "dev-master": "3.0-dev" 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | tests 7 | 8 | 9 | 10 | 11 | src 12 | 13 | src/functions.php 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/src/DroppingStream.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 21 | $this->maxLength = $maxLength; 22 | } 23 | 24 | public function write($string) 25 | { 26 | $diff = $this->maxLength - $this->stream->getSize(); 27 | 28 | // Begin returning false when the underlying stream is too large. 29 | if ($diff <= 0) { 30 | return false; 31 | } 32 | 33 | // Write the stream or a subset of the stream if needed. 34 | if (strlen($string) < $diff) { 35 | return $this->stream->write($string); 36 | } 37 | 38 | $this->stream->write(substr($string, 0, $diff)); 39 | 40 | return false; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/src/Exception/CannotAttachException.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 16 | $msg = $msg ?: 'Could not seek the stream to position ' . $pos; 17 | parent::__construct($msg); 18 | } 19 | 20 | /** 21 | * @return StreamInterface 22 | */ 23 | public function getStream() 24 | { 25 | return $this->stream; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/src/InflateStream.php: -------------------------------------------------------------------------------- 1 | stream = new Stream($resource); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/src/LazyOpenStream.php: -------------------------------------------------------------------------------- 1 | filename = $filename; 25 | $this->mode = $mode; 26 | } 27 | 28 | /** 29 | * Creates the underlying stream lazily when required. 30 | * 31 | * @return StreamInterface 32 | */ 33 | protected function createStream() 34 | { 35 | return Stream::factory(Utils::open($this->filename, $this->mode)); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/src/MetadataStreamInterface.php: -------------------------------------------------------------------------------- 1 | stream->attach($stream); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/src/NullStream.php: -------------------------------------------------------------------------------- 1 | assertEquals(3, $drop->write('hel')); 14 | $this->assertFalse($drop->write('lo')); 15 | $this->assertEquals(5, $drop->getSize()); 16 | $this->assertEquals('hello', $drop->read(5)); 17 | $this->assertEquals(0, $drop->getSize()); 18 | $drop->write('12345678910'); 19 | $this->assertEquals(5, $stream->getSize()); 20 | $this->assertEquals(5, $drop->getSize()); 21 | $this->assertEquals('12345', (string) $drop); 22 | $this->assertEquals(0, $drop->getSize()); 23 | $drop->write('hello'); 24 | $this->assertFalse($drop->write('test')); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/tests/Exception/SeekExceptionTest.php: -------------------------------------------------------------------------------- 1 | assertSame($s, $e->getStream()); 14 | $this->assertContains('10', $e->getMessage()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/tests/InflateStreamTest.php: -------------------------------------------------------------------------------- 1 | assertEquals('test', (string) $b); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/tests/NoSeekStreamTest.php: -------------------------------------------------------------------------------- 1 | getMockBuilder('GuzzleHttp\Stream\StreamInterface') 16 | ->setMethods(['isSeekable', 'seek']) 17 | ->getMockForAbstractClass(); 18 | $s->expects($this->never())->method('seek'); 19 | $s->expects($this->never())->method('isSeekable'); 20 | $wrapped = new NoSeekStream($s); 21 | $this->assertFalse($wrapped->isSeekable()); 22 | $this->assertFalse($wrapped->seek(2)); 23 | } 24 | 25 | public function testHandlesClose() 26 | { 27 | $s = Stream::factory('foo'); 28 | $wrapped = new NoSeekStream($s); 29 | $wrapped->close(); 30 | $this->assertFalse($wrapped->write('foo')); 31 | } 32 | 33 | public function testCanAttach() 34 | { 35 | $s1 = Stream::factory('foo'); 36 | $s2 = Stream::factory('bar'); 37 | $wrapped = new NoSeekStream($s1); 38 | $wrapped->attach($s2->detach()); 39 | $this->assertEquals('bar', (string) $wrapped); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/streams/tests/NullStreamTest.php: -------------------------------------------------------------------------------- 1 | assertEquals('', $b->read(10)); 12 | $this->assertEquals(4, $b->write('test')); 13 | $this->assertEquals('', (string) $b); 14 | $this->assertNull($b->getMetadata('a')); 15 | $this->assertEquals([], $b->getMetadata()); 16 | $this->assertEquals(0, $b->getSize()); 17 | $this->assertEquals('', $b->getContents()); 18 | $this->assertEquals(0, $b->tell()); 19 | 20 | $this->assertTrue($b->isReadable()); 21 | $this->assertTrue($b->isWritable()); 22 | $this->assertTrue($b->isSeekable()); 23 | $this->assertFalse($b->seek(10)); 24 | 25 | $this->assertTrue($b->eof()); 26 | $b->detach(); 27 | $this->assertTrue($b->eof()); 28 | $b->close(); 29 | } 30 | 31 | /** 32 | * @expectedException \GuzzleHttp\Stream\Exception\CannotAttachException 33 | */ 34 | public function testCannotAttach() 35 | { 36 | $p = new NullStream(); 37 | $p->attach('a'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/psr/log/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | -------------------------------------------------------------------------------- /vendor/psr/log/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 PHP Framework Interoperability Group 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/psr/log/Psr/Log/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | logger = $logger; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/psr/log/Psr/Log/NullLogger.php: -------------------------------------------------------------------------------- 1 | logger) { }` 11 | * blocks. 12 | */ 13 | class NullLogger extends AbstractLogger 14 | { 15 | /** 16 | * Logs with an arbitrary level. 17 | * 18 | * @param mixed $level 19 | * @param string $message 20 | * @param array $context 21 | * 22 | * @return void 23 | */ 24 | public function log($level, $message, array $context = array()) 25 | { 26 | // noop 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/psr/log/README.md: -------------------------------------------------------------------------------- 1 | PSR Log 2 | ======= 3 | 4 | This repository holds all interfaces/classes/traits related to 5 | [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md). 6 | 7 | Note that this is not a logger of its own. It is merely an interface that 8 | describes a logger. See the specification for more details. 9 | 10 | Usage 11 | ----- 12 | 13 | If you need a logger, you can use the interface like this: 14 | 15 | ```php 16 | logger = $logger; 27 | } 28 | 29 | public function doSomething() 30 | { 31 | if ($this->logger) { 32 | $this->logger->info('Doing work'); 33 | } 34 | 35 | // do something useful 36 | } 37 | } 38 | ``` 39 | 40 | You can then pick one of the implementations of the interface to get a logger. 41 | 42 | If you want to implement the interface, you can require this package and 43 | implement `Psr\Log\LoggerInterface` in your code. Please read the 44 | [specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) 45 | for details. 46 | -------------------------------------------------------------------------------- /vendor/psr/log/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/log", 3 | "description": "Common interface for logging libraries", 4 | "keywords": ["psr", "psr-3", "log"], 5 | "homepage": "https://github.com/php-fig/log", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "PHP-FIG", 10 | "homepage": "http://www.php-fig.org/" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.3.0" 15 | }, 16 | "autoload": { 17 | "psr-4": { 18 | "Psr\\Log\\": "Psr/Log/" 19 | } 20 | }, 21 | "extra": { 22 | "branch-alias": { 23 | "dev-master": "1.0.x-dev" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/react/promise/.gitignore: -------------------------------------------------------------------------------- 1 | composer.lock 2 | composer.phar 3 | phpunit.xml 4 | build/ 5 | vendor/ 6 | -------------------------------------------------------------------------------- /vendor/react/promise/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 5.4 5 | - 5.5 6 | - 5.6 7 | - 7.0 8 | - 7.1 9 | - nightly # ignore errors, see below 10 | - hhvm # ignore errors, see below 11 | 12 | # lock distro so new future defaults will not break the build 13 | dist: trusty 14 | 15 | matrix: 16 | allow_failures: 17 | - php: hhvm 18 | - php: nightly 19 | 20 | install: 21 | - composer install 22 | 23 | script: 24 | - ./vendor/bin/phpunit -v --coverage-text --coverage-clover=./build/logs/clover.xml 25 | 26 | after_script: 27 | - if [ -f ./build/logs/clover.xml ]; then travis_retry composer require satooshi/php-coveralls --no-interaction --update-with-dependencies; fi 28 | - if [ -f ./build/logs/clover.xml ]; then php vendor/bin/coveralls -v; fi 29 | -------------------------------------------------------------------------------- /vendor/react/promise/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2016 Jan Sorgalla 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /vendor/react/promise/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react/promise", 3 | "description": "A lightweight implementation of CommonJS Promises/A for PHP", 4 | "license": "MIT", 5 | "authors": [ 6 | {"name": "Jan Sorgalla", "email": "jsorgalla@gmail.com"} 7 | ], 8 | "require": { 9 | "php": ">=5.4.0" 10 | }, 11 | "require-dev": { 12 | "phpunit/phpunit": "~4.8" 13 | }, 14 | "autoload": { 15 | "psr-4": { 16 | "React\\Promise\\": "src/" 17 | }, 18 | "files": ["src/functions_include.php"] 19 | }, 20 | "autoload-dev": { 21 | "psr-4": { 22 | "React\\Promise\\": "tests/fixtures" 23 | } 24 | }, 25 | "keywords": [ 26 | "promise", 27 | "promises" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /vendor/react/promise/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | ./tests/ 17 | 18 | 19 | 20 | 21 | 22 | ./src/ 23 | 24 | ./src/functions_include.php 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /vendor/react/promise/src/CancellablePromiseInterface.php: -------------------------------------------------------------------------------- 1 | started) { 13 | return; 14 | } 15 | 16 | $this->started = true; 17 | $this->drain(); 18 | } 19 | 20 | public function enqueue($cancellable) 21 | { 22 | if (!method_exists($cancellable, 'then') || !method_exists($cancellable, 'cancel')) { 23 | return; 24 | } 25 | 26 | $length = array_push($this->queue, $cancellable); 27 | 28 | if ($this->started && 1 === $length) { 29 | $this->drain(); 30 | } 31 | } 32 | 33 | private function drain() 34 | { 35 | for ($i = key($this->queue); isset($this->queue[$i]); $i++) { 36 | $cancellable = $this->queue[$i]; 37 | 38 | $exception = null; 39 | 40 | try { 41 | $cancellable->cancel(); 42 | } catch (\Throwable $exception) { 43 | } catch (\Exception $exception) { 44 | } 45 | 46 | unset($this->queue[$i]); 47 | 48 | if ($exception) { 49 | throw $exception; 50 | } 51 | } 52 | 53 | $this->queue = []; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/react/promise/src/Exception/LengthException.php: -------------------------------------------------------------------------------- 1 | reason = $reason; 21 | 22 | $message = sprintf('Unhandled Rejection: %s', json_encode($reason)); 23 | 24 | parent::__construct($message, 0); 25 | } 26 | 27 | public function getReason() 28 | { 29 | return $this->reason; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/react/promise/src/functions_include.php: -------------------------------------------------------------------------------- 1 | callbacks = $callbacks; 14 | } 15 | 16 | public function promise() 17 | { 18 | return call_user_func_array($this->callbacks['promise'], func_get_args()); 19 | } 20 | 21 | public function resolve() 22 | { 23 | return call_user_func_array($this->callbacks['resolve'], func_get_args()); 24 | } 25 | 26 | public function reject() 27 | { 28 | return call_user_func_array($this->callbacks['reject'], func_get_args()); 29 | } 30 | 31 | public function notify() 32 | { 33 | return call_user_func_array($this->callbacks['notify'], func_get_args()); 34 | } 35 | 36 | public function settle() 37 | { 38 | return call_user_func_array($this->callbacks['settle'], func_get_args()); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /vendor/react/promise/tests/PromiseAdapter/PromiseAdapterInterface.php: -------------------------------------------------------------------------------- 1 | createCallableMock(); 10 | $mock 11 | ->expects($this->exactly($amount)) 12 | ->method('__invoke'); 13 | 14 | return $mock; 15 | } 16 | 17 | public function expectCallableOnce() 18 | { 19 | $mock = $this->createCallableMock(); 20 | $mock 21 | ->expects($this->once()) 22 | ->method('__invoke'); 23 | 24 | return $mock; 25 | } 26 | 27 | public function expectCallableNever() 28 | { 29 | $mock = $this->createCallableMock(); 30 | $mock 31 | ->expects($this->never()) 32 | ->method('__invoke'); 33 | 34 | return $mock; 35 | } 36 | 37 | public function createCallableMock() 38 | { 39 | return $this 40 | ->getMockBuilder('React\\Promise\Stub\CallableStub') 41 | ->getMock(); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/react/promise/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | addPsr4('React\\Promise\\', __DIR__); 8 | -------------------------------------------------------------------------------- /vendor/react/promise/tests/fixtures/SimpleFulfilledTestPromise.php: -------------------------------------------------------------------------------- 1 | cancelCalled = true; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /vendor/react/promise/tests/fixtures/SimpleTestCancellableThenable.php: -------------------------------------------------------------------------------- 1 | cancelCalled = true; 17 | } 18 | } 19 | --------------------------------------------------------------------------------