From 879b7bbe5e13c2f5342fd0e0dd84fe641beb135d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Kr=C3=A4mer?= Date: Mon, 14 May 2018 14:37:50 +0200 Subject: [PATCH] Adding a fix to make it work with 3.6 --- src/Datasource/Connection.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Datasource/Connection.php b/src/Datasource/Connection.php index aedd3715..81ba1542 100644 --- a/src/Datasource/Connection.php +++ b/src/Datasource/Connection.php @@ -62,6 +62,7 @@ public function __construct(array $config = [], $callback = null) * Returns a SchemaCollection stub until we can add more * abstract API's in Connection. * + * @deprecated Use getSchemaCollection() instead * @return \Cake\ElasticSearch\Datasource\SchemaCollection */ public function schemaCollection() @@ -69,6 +70,17 @@ public function schemaCollection() return new SchemaCollection($this); } + /** + * Returns a SchemaCollection stub until we can add more + * abstract API's in Connection. + * + * @return \Cake\ElasticSearch\Datasource\SchemaCollection + */ + public function getSchemaCollection() + { + return new SchemaCollection($this); + } + /** * {@inheritDoc} */