Skip to content

Commit

Permalink
Drop old versions of PHP and Symfony (#763)
Browse files Browse the repository at this point in the history
* Drop old versions

* Rector
  • Loading branch information
VincentLanglet authored Dec 7, 2024
1 parent 4b91f79 commit 2de5c32
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
],
"homepage": "https://docs.sonata-project.org/projects/SonataSeoBundle",
"require": {
"php": "^8.0",
"php": "^8.1",
"ext-json": "*",
"sonata-project/block-bundle": "^4.18 || ^5.0",
"sonata-project/exporter": "^2.0 || ^3.0",
"symfony/config": "^5.4 || ^6.2 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.2 || ^7.0",
"symfony/form": "^5.4 || ^6.2 || ^7.0",
"symfony/framework-bundle": "^5.4 || ^6.2 || ^7.0",
"symfony/http-foundation": "^5.4 || ^6.2 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.2 || ^7.0",
"symfony/options-resolver": "^5.4 || ^6.2 || ^7.0",
"symfony/config": "^6.4 || ^7.1",
"symfony/dependency-injection": "^6.4 || ^7.1",
"symfony/form": "^6.4 || ^7.1",
"symfony/framework-bundle": "^6.4 || ^7.1",
"symfony/http-foundation": "^6.4 || ^7.1",
"symfony/http-kernel": "^6.4 || ^7.1",
"symfony/options-resolver": "^6.4 || ^7.1",
"twig/twig": "^3.0"
},
"require-dev": {
Expand All @@ -46,11 +46,11 @@
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.18",
"rector/rector": "^1.1",
"symfony/console": "^5.4 || ^6.2 || ^7.0",
"symfony/filesystem": "^5.4 || ^6.2 || ^7.0",
"symfony/finder": "^5.4 || ^6.2 || ^7.0",
"symfony/phpunit-bridge": "^6.2",
"symfony/yaml": "^5.4 || ^6.2 || ^7.0",
"symfony/console": "^6.4 || ^7.1",
"symfony/filesystem": "^6.4 || ^7.1",
"symfony/finder": "^6.4 || ^7.1",
"symfony/phpunit-bridge": "^6.4 || ^7.1",
"symfony/yaml": "^6.4 || ^7.1",
"vimeo/psalm": "^5.0"
},
"minimum-stability": "dev",
Expand Down
18 changes: 9 additions & 9 deletions src/Twig/Extension/SeoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public function __construct(
public function getFunctions(): array
{
return [
new TwigFunction('sonata_seo_title', [$this, 'getTitle'], ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_title_text', [$this, 'getTitleText'], ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_metadatas', [$this, 'getMetadatas'], ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_html_attributes', [$this, 'getHtmlAttributes'], ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_head_attributes', [$this, 'getHeadAttributes'], ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_link_canonical', [$this, 'getLinkCanonical'], ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_lang_alternates', [$this, 'getLangAlternates'], ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_oembed_links', [$this, 'getOembedLinks'], ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_breadcrumb', [$this, 'renderBreadcrumb'], [
new TwigFunction('sonata_seo_title', $this->getTitle(...), ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_title_text', $this->getTitleText(...), ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_metadatas', $this->getMetadatas(...), ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_html_attributes', $this->getHtmlAttributes(...), ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_head_attributes', $this->getHeadAttributes(...), ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_link_canonical', $this->getLinkCanonical(...), ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_lang_alternates', $this->getLangAlternates(...), ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_oembed_links', $this->getOembedLinks(...), ['is_safe' => ['html']]),
new TwigFunction('sonata_seo_breadcrumb', $this->renderBreadcrumb(...), [
'needs_environment' => true,
'is_safe' => ['html'],
]),
Expand Down

0 comments on commit 2de5c32

Please sign in to comment.