Skip to content

Commit

Permalink
NGSTACK-807 CanonicalUrl configuration moved to appropriate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Miljenko Muha committed Dec 7, 2023
1 parent dc3f3cb commit 6e3bbc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 7 additions & 0 deletions bundle/Resources/config/handlers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ services:
- "@?logger"
tags:
- { name: netgen_open_graph.meta_tag_handler, alias: field_type/ezimage }

netgen_open_graph.handler.literal.canonical_url:
class: Netgen\Bundle\OpenGraphBundle\Handler\Literal\CanonicalUrl
arguments:
- "@router"
tags:
- { name: netgen_open_graph.meta_tag_handler, alias: ngsite/canonical }
7 changes: 1 addition & 6 deletions bundle/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,4 @@ services:
netgen_open_graph.meta_tag_renderer:
class: Netgen\Bundle\OpenGraphBundle\MetaTag\Renderer

app.opengraph.handler.url:
class: Netgen\Bundle\OpenGraphBundle\Handler\Literal\CanonicalUrl
arguments:
- "@router"
tags:
- { name: netgen_open_graph.meta_tag_handler, alias: ngsite/canonical }

0 comments on commit 6e3bbc7

Please sign in to comment.