Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit abc43c9

Browse files
committed
Change scope of package to just the interface
1 parent ab9f9c2 commit abc43c9

File tree

13 files changed

+13
-1069
lines changed

13 files changed

+13
-1069
lines changed

README.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,7 @@
44
[![Latest Stable Version](https://poser.pugx.org/wikibase/term-store/version.png)](https://packagist.org/packages/wikibase/term-store)
55
[![Download count](https://poser.pugx.org/wikibase/term-store/d/total.png)](https://packagist.org/packages/wikibase/term-store)
66

7-
Small library for looking up terms by item or property id or finding ids by term.
8-
9-
## Usage
10-
11-
The public entry point of the package is `DoctrineTermStore`, which is used to construct all services.
12-
13-
```php
14-
$termStore = new DoctrineTermStore( /* config */ );
15-
```
16-
17-
Getting terms:
18-
19-
```php
20-
$fingerprint = $termStore->newPropertyTermStore()->getTerms( $propertyId );
21-
```
22-
23-
Schema creation:
24-
25-
```php
26-
$termStore->install();
27-
```
7+
Tiny library that defines the interface for term persistence of Wikibase entities.
288

299
## Installation
3010

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"description": "Small library for looking up terms by item or property id or findings ids by term",
55
"require": {
66
"php": "^5.6.99|^7.0",
7-
"wikibase/data-model": "~9.1",
8-
"doctrine/dbal": "~2.5",
9-
"onoi/message-reporter": "~1.3"
7+
"wikibase/data-model": "~9.1"
108
},
119
"require-dev": {
1210
"doctrine/dbal": "~2.5.13",

phpcs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingPropertyTypeHint" />
154154
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint" />
155155
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint" />
156+
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing" />
156157
</rule>
157158

158159
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">

src/DoctrineTermStore.php

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/PackagePrivate/Doctrine/DoctrinePropertyTermStore.php

Lines changed: 0 additions & 243 deletions
This file was deleted.

0 commit comments

Comments
 (0)