Skip to content

Commit

Permalink
NGSTACK-807 CanonicalUrl class implements HandlerInterface insteaad o…
Browse files Browse the repository at this point in the history
…f extending Handler, supports method removed
  • Loading branch information
Miljenko Muha committed Dec 7, 2023
1 parent 6e3bbc7 commit 292d25e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions bundle/Handler/Literal/CanonicalUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@

namespace Netgen\Bundle\OpenGraphBundle\Handler\Literal;

use Ibexa\Contracts\Core\Repository\Values\Content\Field;
use Netgen\Bundle\OpenGraphBundle\Handler\FieldType\Handler;
use Netgen\Bundle\OpenGraphBundle\Handler\HandlerInterface;
use Netgen\Bundle\OpenGraphBundle\MetaTag\Item;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;

final class CanonicalUrl extends Handler
final class CanonicalUrl implements HandlerInterface
{
private RouterInterface $router;

Expand All @@ -36,9 +35,4 @@ public function getMetaTags($tagName, array $params = []): array
),
];
}

protected function supports(Field $field): bool
{
return true;
}
}

0 comments on commit 292d25e

Please sign in to comment.