Skip to content

Commit 265117d

Browse files
committed
Adjusted code samples after CoreSearch is introduced (#2524)
* Adjusted code samples after CoreSearch is introduced * Adjusted code sample usage
1 parent 21db3dc commit 265117d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

code_samples/api/commerce/src/Command/OrderCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Ibexa\Contracts\Core\Repository\PermissionResolver;
88
use Ibexa\Contracts\Core\Repository\UserService;
9+
use Ibexa\Contracts\CoreSearch\Values\Query\Criterion\LogicalOr;
910
use Ibexa\Contracts\OrderManagement\OrderServiceInterface;
1011
use Ibexa\Contracts\OrderManagement\Value\Order\OrderQuery;
1112
use Ibexa\Contracts\OrderManagement\Value\Order\Query\Criterion\CompanyNameCriterion;
@@ -19,7 +20,6 @@
1920
use Ibexa\Contracts\OrderManagement\Value\OrderValue;
2021
use Ibexa\Contracts\OrderManagement\Value\Struct\OrderCreateStruct;
2122
use Ibexa\Contracts\OrderManagement\Value\Struct\OrderUpdateStruct;
22-
use Ibexa\Contracts\ProductCatalog\Values\Common\Query\Criterion\LogicalOr;
2323
use Money;
2424
use Symfony\Component\Console\Command\Command;
2525
use Symfony\Component\Console\Input\InputInterface;

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"ibexa/rest": "4.6.x-dev",
2727
"ibexa/http-cache": "4.6.x-dev",
2828
"ibexa/core-persistence": "4.6.x-dev",
29+
"ibexa/core-search": "4.6.x-dev",
2930
"ibexa/migrations": "4.6.x-dev",
3031
"ibexa/icons": "4.6.x-dev",
3132
"ibexa/cart": "4.6.x-dev",

docs/commerce/order_management/order_management_api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To fetch multiple orders, use the `OrderService::findOrders` method.
3535
It follows the same search query pattern as other APIs:
3636

3737
``` php
38-
[[= include_file('code_samples/api/commerce/src/Command/OrderCommand.php', 9, 13) =]][[= include_file('code_samples/api/commerce/src/Command/OrderCommand.php', 21, 22) =]]
38+
[[= include_file('code_samples/api/commerce/src/Command/OrderCommand.php', 8, 9) =]][[= include_file('code_samples/api/commerce/src/Command/OrderCommand.php', 10, 14) =]]
3939

4040
// ...
4141
[[= include_file('code_samples/api/commerce/src/Command/OrderCommand.php', 116, 125) =]]

0 commit comments

Comments
 (0)