Skip to content
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

tests(v3.0): apply breaking changes to HttpCache #4749

Closed
wants to merge 1 commit into from

Conversation

Deuchnord
Copy link
Contributor

Q A
Branch? 3.0
Tickets
License MIT
Doc PR

@@ -13,7 +13,7 @@

namespace ApiPlatform\HttpCache\EventListener;

use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
//use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;

$hasRequestAttributeKey = true;
$result['operation_name'] = $attributes['_api_operation_name'];
$result['operation_name'] = $attributes['_api_item_operation_name'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In 3.0 it's _api_operation_name there is no more collection/item

@Deuchnord
Copy link
Contributor Author

Closing in favor of soyuka#37

@Deuchnord Deuchnord closed this May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants