Skip to content

Commit afe788b

Browse files
authored
Merge pull request #329 from PaulHendriks/328
328 Update docs, use FactoryLocator::get('ElasticSearch')
2 parents f066b52 + 3948505 commit afe788b

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

docs/en/4-0-upgrade-guide.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,22 @@ Breaking Changes
1414
* ``Query::isEagerLoaded()``, and ``Query::eagerLoaded()`` were removed.
1515
Previously these methods were inherited from ``QueryTrait`` but served no
1616
purpose here.
17+
18+
19+
Indexes
20+
======
21+
22+
IndexRegistry has been deprecated.
23+
24+
Old code example::
25+
26+
use Cake\ElasticSearch\IndexRegistry;
27+
28+
$articles = IndexRegistry::get('Articles');
29+
30+
31+
New code example::
32+
33+
use Cake\Datasource\FactoryLocator;
34+
35+
$articles = FactoryLocator::get('ElasticSearch')->get('Articles');

0 commit comments

Comments
 (0)