From 0c5ac22a9a807e722ca83265509d8e39e3313251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Proch=C3=A1zka?= Date: Fri, 12 May 2017 01:11:23 +0200 Subject: [PATCH 1/2] drop hhvm --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7b13873..102b973 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,6 @@ php: - 5.5 - 5.6 - 7.0 - - hhvm env: matrix: @@ -35,7 +34,6 @@ matrix: - php: 5.5 env: NETTE=nette-2.4 allow_failures: - - php: hhvm - php: 7.0 env: NETTE=nette-2.4 COVERAGE="--coverage ./coverage.xml --coverage-src ./src" TESTER_RUNTIME="phpdbg" From 4a438254159f800516745c4e9ec3e68a8a202d1c Mon Sep 17 00:00:00 2001 From: Danik Date: Sat, 3 Mar 2018 12:25:21 +0100 Subject: [PATCH 2/2] new elastica + smartObjects + nette 2.4 --- composer.json | 34 ++++--------------- src/Kdyby/ElasticSearch/Client.php | 5 +-- src/Kdyby/ElasticSearch/Diagnostics/Panel.php | 3 +- 3 files changed, 11 insertions(+), 31 deletions(-) diff --git a/composer.json b/composer.json index 66c1323..a8674d9 100644 --- a/composer.json +++ b/composer.json @@ -17,36 +17,14 @@ "issues": "https://github.com/Kdyby/ElasticSearch/issues" }, "require": { - "nette/di": "~2.3@dev", - "tracy/tracy": "~2.3@dev", - "nette/utils": "~2.3@dev", - - "ruflin/elastica": "~2.1|~3.0" + "nette/di": "^2.4", + "tracy/tracy": "^2.4", + "nette/utils": "^2.4", + "ruflin/elastica": "~6.0" }, "require-dev": { - "nette/application": "~2.3@dev", - "nette/bootstrap": "~2.3@dev", - "nette/caching": "~2.3@dev", - "nette/component-model": "~2.2@dev", - "nette/database": "~2.3@dev", - "nette/deprecated": "~2.3@dev", - "nette/di": "~2.3@dev", - "nette/finder": "~2.3@dev", - "nette/forms": "~2.3@dev", - "nette/http": "~2.3@dev", - "nette/mail": "~2.3@dev", - "nette/neon": "~2.3@dev", - "nette/php-generator": "~2.3@dev", - "nette/reflection": "~2.3@dev", - "nette/robot-loader": "~2.3@dev", - "nette/safe-stream": "~2.3@dev", - "nette/security": "~2.3@dev", - "nette/tokenizer": "~2.2@dev", - "latte/latte": "~2.3@dev", - "tracy/tracy": "~2.3@dev", - "nette/utils": "~2.3@dev", - - "nette/tester": "~1.7" + "nette/nette": "^2.4", + "nette/tester": "~2.0" }, "autoload": { "psr-0": { diff --git a/src/Kdyby/ElasticSearch/Client.php b/src/Kdyby/ElasticSearch/Client.php index d1c88b3..091b65b 100644 --- a/src/Kdyby/ElasticSearch/Client.php +++ b/src/Kdyby/ElasticSearch/Client.php @@ -34,15 +34,16 @@ class Client extends Elastica\Client * @param string $method * @param array $data * @param array $query + * @param string $contentType * @throws \Exception * @return Elastica\Response */ - public function request($path, $method = Request::GET, $data = [], array $query = []) + public function request($path, $method = Request::GET, $data = [], array $query = [], $contentType = Request::DEFAULT_CONTENT_TYPE) { $begin = microtime(TRUE); try { - $response = parent::request($path, $method, $data, $query); + $response = parent::request($path, $method, $data, $query, $contentType); $this->onSuccess($this, $this->_lastRequest, $response, microtime(TRUE) - $begin); return $response; diff --git a/src/Kdyby/ElasticSearch/Diagnostics/Panel.php b/src/Kdyby/ElasticSearch/Diagnostics/Panel.php index c417055..eebcd36 100644 --- a/src/Kdyby/ElasticSearch/Diagnostics/Panel.php +++ b/src/Kdyby/ElasticSearch/Diagnostics/Panel.php @@ -25,8 +25,9 @@ /** * @author Filip Procházka */ -class Panel extends Nette\Object implements IBarPanel +class Panel implements IBarPanel { + use Nette\SmartObject; /** * @var float