New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor the management of operations by the swagger DocumentationNormalizer #648
Conversation
The latest commit made the |
@@ -44,7 +44,7 @@ | |||
private $operationMethodResolver; | |||
private $iriConverter; | |||
|
|||
public function __construct(ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ResourceMetadataFactoryInterface $resourceMetadataFactory, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, ResourceClassResolverInterface $resourceClassResolver, OperationMethodResolverInterface $operationMethodResolver, IriConverterInterface $iriConverter) | |||
public function __construct(ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ResourceMetadataFactoryInterface $resourceMetadataFactory, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, ResourceClassResolverInterface $resourceClassResolver, OperationMethodResolverInterface $operationMethodResolver, IriConverterInterface $iriConverter = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why null ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not needed in case there are only custom operations (which should be the case when used as a component).
👍 Do you consider this PR ready to be merged @Ener-Getick? |
@dunglas yes, it looks good to me :) |
Thanks @Ener-Getick |
@Simperfit no more unwanted operation with this PR 👍 |
Refactor the management of operations by the swagger DocumentationNormalizer
Initial post:
In fact I do not even understand why some operations are treated as
custom
so this PR simplify theDocumentationNormalizer
by removing this notion and threat all operations at once.