Coding standards fixes

This commit is contained in:
SirDomin 2021-06-16 19:13:39 +02:00
parent 384f99d188
commit d93a6fb177
3 changed files with 4 additions and 6 deletions

View file

@ -5,7 +5,7 @@
## Context and Problem Statement
Its difficult to overwrite or remove endpoints.
It's difficult to overwrite or remove endpoints.
## Considered Options
@ -36,7 +36,7 @@ in specified directory all we need to do is create config we want to overwrite,
This is example config to remove specific operation, more examples can be found in docs.
* Good, because its easy to understand, you can overwrite any endpoint in just a few lines from any place specified in api platform config.
* Good, because it's easy to understand, you can overwrite any endpoint in just a few lines from any place specified in api platform config.
* Bad, because we need to overwrite and modify services provided by API Platform, differences between API Platform versions can break our application.
## Decision Outcome

View file

@ -17,7 +17,6 @@ use ApiPlatform\Core\Exception\ResourceClassNotFoundException;
use ApiPlatform\Core\Metadata\Extractor\ExtractorInterface;
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
use Sylius\Bundle\ApiBundle\ApiPlatform\ConfigMergeManager;
use Sylius\Bundle\ApiBundle\ApiPlatform\ResourceMetadataPropertyValueResolver;
/**
@ -29,7 +28,7 @@ final class MergingExtractorResourceMetadataFactory implements ResourceMetadataF
/** @var ExtractorInterface */
private $extractor;
/** @var ResourceMetadataFactoryInterface */
/** @var ResourceMetadataFactoryInterface */
private $decorated;
/** @var ResourceMetadataPropertyValueResolver */

View file

@ -151,8 +151,7 @@
<argument type="service" id="api_platform.identifier.converter" on-invalid="ignore" />
</service>
<service id="Sylius\Bundle\ApiBundle\ApiPlatform\ConfigMergeManager" >
</service>
<service id="Sylius\Bundle\ApiBundle\ApiPlatform\ConfigMergeManager" />
<service id="Sylius\Bundle\ApiBundle\ApiPlatform\ResourceMetadataPropertyValueResolver" >
<argument type="service" id="Sylius\Bundle\ApiBundle\ApiPlatform\ConfigMergeManager" />