Skip to content

Commit

Permalink
Fix class references
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Mar 28, 2024
1 parent 6c5563a commit 95bc37b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/NotModified/Annotation/ReplaceWithNotModifiedResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,23 @@

namespace Webfactory\HttpCacheBundle\NotModified\Annotation;

use Webfactory\HttpCacheBundle\NotModified\Attribute;

/**
* @Annotation
*
* @deprecated, to be replaced by attribute-based configuration
*/
final class ReplaceWithNotModifiedResponse extends \Webfactory\HttpCacheBundle\NotModified\Attribute\ReplaceWithNotModifiedResponse
final class ReplaceWithNotModifiedResponse extends Attribute\ReplaceWithNotModifiedResponse
{
public function __construct(array $parameters)
{
trigger_deprecation(
'webfactory/http-cache-bundle',
'1.4.0',
'The %s annotation has been deprecated, use the %s attribute instead.',
NotModified\Annotation\ReplaceWithNotModifiedResponse::class,
NotModified\Attribute\ReplaceWithNotModifiedResponse::class
__CLASS__,
Attribute\ReplaceWithNotModifiedResponse::class
);

parent::__construct($parameters['value']);
Expand Down

0 comments on commit 95bc37b

Please sign in to comment.