Skip to content

Commit

Permalink
Symfony 7.1 update (#54)
Browse files Browse the repository at this point in the history
* Symfony 7.1 update

* Symfony 7.1 update

---------

Co-authored-by: Hidde <[email protected]>
  • Loading branch information
hiddeb and hiddebb authored Sep 9, 2024
1 parent c755984 commit b4e26ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 4 additions & 5 deletions Service/GoogleTagManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

namespace Xynnn\GoogleTagManagerBundle\Service;

use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
Expand All @@ -20,16 +19,16 @@
*/
class GoogleTagManagerFactory
{
use ContainerAwareTrait;
private ContainerInterface $container;

private function getContainer(): ContainerInterface
public function setContainer(ContainerInterface $container): ContainerInterface
{
return $this->container;
return $this->container = $container;
}

public function create(): GoogleTagManagerInterface
{
$container = $this->getContainer();
$container = $this->container;

$enabled = $container->getParameter('google_tag_manager.enabled');
$id = $container->getParameter('google_tag_manager.id');
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"minimum-stability": "stable",
"require": {
"php": "^8.1",
"symfony/dependency-injection": "^6.4||7.0",
"symfony/http-kernel": "^6.4||7.0",
"symfony/config": "^6.4||7.0",
"symfony/templating": "^6.4||7.0",
"symfony/dependency-injection": "^6.4||^7",
"symfony/http-kernel": "^6.4||^7",
"symfony/config": "^6.4||^7",
"symfony/templating": "^6.4||^7",
"twig/twig": "^2.0||^3.0",
"symfony/yaml": "^6.4||7.0"
"symfony/yaml": "^6.4||^7"
},
"require-dev": {
"phpunit/phpunit": "^9"
Expand Down

0 comments on commit b4e26ff

Please sign in to comment.