Skip to content

Commit

Permalink
Merge pull request #1 from jeyroik/v0
Browse files Browse the repository at this point in the history
added extensions description
  • Loading branch information
jeyroik committed Sep 30, 2020
2 parents d95b143 + 21fde52 commit 76ee3e7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.1.1

- Extension description added to the `extas.json`.

# 0.1.0

- Базовый функционал, включая:
Expand Down
13 changes: 13 additions & 0 deletions extas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "extas/operations-jsonrpc-index",
"extensions": [
{
"class": "extas\\components\\extensions\\ExtensionJsonRpcIndex",
"interface": "extas\\interfaces\\extensions\\IExtensionJsonRpcIndex",
"subject": "extas.jsonrpc.request",
"methods": [
"getLimit", "getOffset", "getSelect", "getSort"
]
}
]
}
2 changes: 1 addition & 1 deletion src/components/operations/jsonrpc/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,6 @@ protected function filterByConditions(IItem $item, array $conditions, array &$re
*/
protected function getSubjectForExtension(): string
{
return static::SUBJECT;
return 'extas.operation.jsonrpc.index';
}
}
2 changes: 1 addition & 1 deletion tests/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"expand": ["snuff.item.description"],
"filter": {
"name": {
"~": "test"
"$~": "test"
}
}
}
Expand Down

0 comments on commit 76ee3e7

Please sign in to comment.