Skip to content

Commit 6b8e5fa

Browse files
authored
FRW-11401 Added CodeBucket support for API Platform (#224)
FRW-11401 Add CodeBucket support for API-Platform
1 parent e07e64d commit 6b8e5fa

22 files changed

Lines changed: 2120 additions & 53 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"api-platform/symfony": "^4.2.0",
2222
"api-platform/validator": "^4.2.0",
2323
"php": ">=8.3",
24+
"spryker/kernel": "^3.48.0",
2425
"spryker/log": "^3.0.0",
2526
"spryker/transfer": "^3.27.0",
2627
"symfony/config": "^6.0.0 || ^7.0.0",
@@ -33,7 +34,6 @@
3334
"spryker/code-sniffer": "*",
3435
"spryker/console": "*",
3536
"spryker/container": "*",
36-
"spryker/kernel": "*",
3737
"spryker/symfony": "*",
3838
"spryker/testify": "*",
3939
"symfony/framework-bundle": "*"

dependency.json

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
{
22
"include": {
3-
"api-platform/api-pack": "Required for the APi Platform.",
4-
"api-platform/hal": "Required for the APi Platform.",
5-
"api-platform/json-api": "Required for the APi Platform.",
6-
"api-platform/metadata": "Required for the APi Platform.",
7-
"api-platform/state": "Required for the APi Platform.",
8-
"symfony/config": "Required for the APi Platform.",
9-
"symfony/console": "Required for the APi Platform.",
10-
"symfony/finder": "Required for the APi Platform.",
11-
"symfony/http-kernel": "Required for the APi Platform.",
12-
"symfony/yaml": "Required for the APi Platform.",
13-
"spryker/transfer": "Provides transfer objects definition with strict types."
14-
},
15-
"exclude": {
16-
"spryker/helper": "Bug in the Dependency Finder."
3+
"api-platform/api-pack": "Required for the ApiPlatform.",
4+
"api-platform/hal": "Required for the ApiPlatform.",
5+
"api-platform/json-api": "Required for the ApiPlatform.",
6+
"api-platform/metadata": "Required for the ApiPlatform.",
7+
"api-platform/state": "Required for the ApiPlatform.",
8+
"spryker/kernel": "Required for CodeBucket support.",
9+
"symfony/config": "Required for the ApiPlatform.",
10+
"symfony/console": "Required for the ApiPlatform.",
11+
"symfony/finder": "Required for the ApiPlatform.",
12+
"symfony/http-kernel": "Required for the ApiPlatform.",
13+
"symfony/yaml": "Required for the ApiPlatform."
1714
}
1815
}

resources/config/services.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
use Spryker\ApiPlatform\Schema\Validation\Mapper\ValidationGroupMapperInterface;
3636
use Spryker\ApiPlatform\Schema\Validation\Merger\ValidationSchemaMerger;
3737
use Spryker\ApiPlatform\Schema\Validation\Merger\ValidationSchemaMergerInterface;
38+
use Spryker\ApiPlatform\Schema\Validator\PreMergeValidator;
39+
use Spryker\ApiPlatform\Schema\Validator\PreMergeValidatorInterface;
3840
use Spryker\ApiPlatform\Schema\Validator\Rules\MergeValidationRule;
3941
use Spryker\ApiPlatform\Schema\Validator\Rules\OperationValidationRule;
4042
use Spryker\ApiPlatform\Schema\Validator\Rules\PaginationValidationRule;
@@ -81,6 +83,9 @@
8183

8284
$services->set(ValidationGroupMapperInterface::class, ValidationGroupMapper::class);
8385

86+
// Schema Parser PreMergeValidator
87+
$services->set(PreMergeValidatorInterface::class, PreMergeValidator::class);
88+
8489
// Schema Parser
8590
$services->set(SchemaParserInterface::class, SchemaParser::class);
8691

0 commit comments

Comments
 (0)