Skip to content

Conversation

Deuchnord
Copy link
Contributor

Q A
Branch? 3.0
Tickets
License MIT
Doc PR

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;

if (isset($attributes['_api_item_operation_name'])) {
$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