Skip to content

Commit

Permalink
Use EntityLookup from DataModelServices
Browse files Browse the repository at this point in the history
EntityLookup has been removed from WikibaseLib
Thus we must now get it from DataModelServices.

This extensions now requires ~1.1 of DMServices
  • Loading branch information
addshore committed Aug 12, 2015
1 parent acfd7b9 commit 10c283e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"issues": "https://github.com/Wikidata-lib/PropertySuggester/issues"
},
"require": {
"php": ">=5.3.0"
"php": ">=5.3.0",
"wikibase/data-model-services": "~1.1"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
Expand Down
2 changes: 1 addition & 1 deletion src/PropertySuggester/GetSuggestions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use PropertySuggester\Suggesters\SimpleSuggester;
use PropertySuggester\Suggesters\SuggesterEngine;
use Wikibase\DataModel\Entity\Property;
use Wikibase\Lib\Store\EntityLookup;
use Wikibase\DataModel\Services\Lookup\EntityLookup;
use Wikibase\Lib\Store\EntityTitleLookup;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\TermIndex;
Expand Down
2 changes: 1 addition & 1 deletion src/PropertySuggester/SuggestionGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Wikibase\DataModel\Entity\ItemId;
use Wikibase\DataModel\Entity\Property;
use Wikibase\DataModel\Entity\PropertyId;
use Wikibase\Lib\Store\EntityLookup;
use Wikibase\DataModel\Services\Lookup\EntityLookup;
use Wikibase\TermIndex;
use Wikibase\TermIndexEntry;
use InvalidArgumentException;
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/PropertySuggester/SuggestionGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use PropertySuggester\Suggesters\Suggestion;
use Wikibase\DataModel\Entity\PropertyId;
use Wikibase\DataModel\Entity\Item;
use Wikibase\DataModel\Services\Lookup\EntityLookup;
use Wikibase\DataModel\Snak\PropertySomeValueSnak;
use Wikibase\DataModel\Entity\ItemId;
use Wikibase\Lib\Store\EntityLookup;
use Wikibase\TermIndex;
use InvalidArgumentException;
use Wikibase\TermIndexEntry;
Expand Down Expand Up @@ -46,7 +46,7 @@ class SuggestionGeneratorTest extends MediaWikiTestCase {
public function setUp() {
parent::setUp();

$this->lookup = $this->getMock( 'Wikibase\Lib\Store\EntityLookup' );
$this->lookup = $this->getMock( 'Wikibase\DataModel\Services\Lookup\EntityLookup' );
$this->termIndex = $this->getMock( 'Wikibase\TermIndex' );
$this->suggester = $this->getMock( 'PropertySuggester\Suggesters\SuggesterEngine' );

Expand Down

0 comments on commit 10c283e

Please sign in to comment.