Skip to content

Commit

Permalink
Merge pull request #3484 from acrobat/allow-sf7
Browse files Browse the repository at this point in the history
[AllBundles] Allow symfony 7
  • Loading branch information
acrobat authored Feb 1, 2025
2 parents ac6fbdb + 8e04b6b commit 1b4119d
Show file tree
Hide file tree
Showing 12 changed files with 98 additions and 268 deletions.
178 changes: 4 additions & 174 deletions .build/deprecations-baseline.json
Original file line number Diff line number Diff line change
@@ -1,182 +1,12 @@
[
{
"location": "Kunstmaan\\AdminBundle\\Tests\\Entity\\AclChangesetTest::testSetAndGetUser",
"message": "The \"FOS\\UserBundle\\Model\\UserInterface\" interface extends \"Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface\" that is deprecated since Symfony 4.1.",
"location": "Kunstmaan\\TranslatorBundle\\Service\\Translator\\Translator",
"message": "The \"Symfony\\Bundle\\FrameworkBundle\\Translation\\Translator\" class is considered final since Symfony 7.1. It may change without further notice as of its next major version. You should not extend it from \"Kunstmaan\\TranslatorBundle\\Service\\Translator\\Translator\".",
"count": 1
},
{
"location": "Kunstmaan\\AdminBundle\\Tests\\Entity\\GroupTest::testGetRoles",
"message": "The \"Kunstmaan\\AdminBundle\\Entity\\Role\" class extends \"Symfony\\Component\\Security\\Core\\Role\\Role\" that is deprecated since Symfony 4.3, to be removed in 5.0. Use strings as roles instead.",
"count": 1
},
{
"location": "Kunstmaan\\AdminBundle\\Tests\\EventListener\\PasswordResettingListenerTest::testListener",
"message": "The \"FOS\\UserBundle\\Event\\UserEvent\" class extends \"Symfony\\Component\\EventDispatcher\\Event\" that is deprecated since Symfony 4.3, use \"Symfony\\Contracts\\EventDispatcher\\Event\" instead.",
"count": 1
},
{
"location": "Kunstmaan\\AdminBundle\\Tests\\Helper\\VersionCheckTest::testTranslatorConstructorParameterType",
"message": "Passing an instance of \"Doctrine\\Common\\Cache\\CacheProvider\" as the second argument in \"Kunstmaan\\AdminBundle\\Helper\\VersionCheck\\VersionChecker::__construct\" is deprecated since KunstmaanAdminBundle 5.7 and an instance of \"Symfony\\Component\\Cache\\Adapter\\AdapterInterface\" will be required in KunstmaanAdminBundle 6.0.",
"count": 1
},
{
"location": "Kunstmaan\\AdminListBundle\\Tests\\AdminList\\Helper\\DoctrineDBALAdapterTest::testConstructorWithIncorrectCountField",
"message": "Since pagerfanta/pagerfanta 2.2: The \"Pagerfanta\\Exception\\Exception\" interface is deprecated and will be removed in 3.0, exceptions should implement \"Pagerfanta\\Exception\\PagerfantaException\" instead.",
"count": 1
},
{
"location": "Kunstmaan\\AdminListBundle\\Tests\\AdminList\\Helper\\DoctrineDBALAdapterTest::testGetSlice",
"message": "The Doctrine\\DBAL\\Statement::fetchAll method is deprecated (Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead.).",
"count": 1
},
{
"location": "Kunstmaan\\AdminListBundle\\Tests\\AdminList\\Helper\\DoctrineDBALAdapterTest::testNbResults",
"message": "The Doctrine\\DBAL\\Statement::fetchColumn method is deprecated (Use fetchOne() instead.).",
"count": 1
},
{
"location": "Kunstmaan\\AdminListBundle\\Tests\\AdminList\\Helper\\DoctrineDBALAdapterTest::testNbResultsWithZeroResults",
"message": "The Doctrine\\DBAL\\Statement::fetchColumn method is deprecated (Use fetchOne() instead.).",
"count": 1
},
{
"location": "Kunstmaan\\GeneratorBundle\\Tests\\Generator\\DefaultSiteGeneratorTest::testGenerator",
"message": "Using the \"Twig_Loader_Filesystem\" class is deprecated since Twig version 2.7, use \"Twig\\Loader\\FilesystemLoader\" instead.",
"count": 1
},
{
"location": "Kunstmaan\\NodeBundle\\Tests\\Helper\\UrlHelperTest::testReplaceUrlWithInternalLink",
"message": "The Doctrine\\DBAL\\Driver\\ResultStatement::fetch method is deprecated (Use fetchNumeric(), fetchAssociative() or fetchOne() instead.).",
"count": 1
},
{
"location": "Kunstmaan\\NodeBundle\\Tests\\Helper\\UrlHelperTest::testReplaceUrlWithMediaLink",
"message": "The Doctrine\\DBAL\\Driver\\ResultStatement::fetch method is deprecated (Use fetchNumeric(), fetchAssociative() or fetchOne() instead.).",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "Translations directory \"/private/var/projects/forks/KunstmaanBundlesCMS/src/Kunstmaan/TranslatorBundle/Tests/app/Resources/translations\" is deprecated since Symfony 4.2, use \"/private/var/projects/forks/KunstmaanBundlesCMS/src/Kunstmaan/TranslatorBundle/Tests/app/translations\" instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.",
"count": 2
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder::root()\" method called for the \"fos_user\" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead.",
"count": 2
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"twig.exception_controller\" configuration key has been deprecated in Symfony 4.4, set it to \"null\" and use \"framework.error_controller\" configuration key instead.",
"count": 2
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" class is deprecated since Symfony 4.2, use \"Symfony\\Component\\Console\\Command\\Command\" with dependency injection instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\UtilitiesBundle\\Command\\CipherCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\AdminBundle\\Command\\CreateUserCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\AdminBundle\\Command\\CreateGroupCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\AdminBundle\\Command\\CreateRoleCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\AdminBundle\\Command\\ExceptionCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\AdminBundle\\Command\\UpdateAclCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\AdminBundle\\Command\\ApplyAclCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\TranslatorBundle\\Command\\ExportTranslationsCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\TranslatorBundle\\Command\\TranslationCacheCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\TranslationRepositoryTest::setUp",
"message": "The \"Kunstmaan\\TranslatorBundle\\Command\\TranslationFlagCommand\" class extends \"Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand\" that is deprecated since Symfony 4.2, use {@see Command} instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\ImportCommandHandlerTest::setUp",
"message": "Translations directory \"/private/var/projects/forks/KunstmaanBundlesCMS/src/Kunstmaan/TranslatorBundle/Tests/app/Resources/translations\" is deprecated since Symfony 4.2, use \"/private/var/projects/forks/KunstmaanBundlesCMS/src/Kunstmaan/TranslatorBundle/Tests/app/translations\" instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\ImportCommandHandlerTest::setUp",
"message": "A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.",
"count": 2
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\ImportCommandHandlerTest::setUp",
"message": "The \"Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder::root()\" method called for the \"fos_user\" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead.",
"count": 2
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\ImportCommandHandlerTest::setUp",
"message": "The \"twig.exception_controller\" configuration key has been deprecated in Symfony 4.4, set it to \"null\" and use \"framework.error_controller\" configuration key instead.",
"count": 2
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\ImporterTest::setUp",
"message": "Translations directory \"/private/var/projects/forks/KunstmaanBundlesCMS/src/Kunstmaan/TranslatorBundle/Tests/app/Resources/translations\" is deprecated since Symfony 4.2, use \"/private/var/projects/forks/KunstmaanBundlesCMS/src/Kunstmaan/TranslatorBundle/Tests/app/translations\" instead.",
"count": 1
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\ImporterTest::setUp",
"message": "A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.",
"count": 2
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\ImporterTest::setUp",
"message": "The \"Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder::root()\" method called for the \"fos_user\" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead.",
"count": 2
},
{
"location": "Kunstmaan\\TranslatorBundle\\Tests\\Service\\Importer\\ImporterTest::setUp",
"message": "The \"twig.exception_controller\" configuration key has been deprecated in Symfony 4.4, set it to \"null\" and use \"framework.error_controller\" configuration key instead.",
"count": 2
},
{
"location": "Kunstmaan\\UtilitiesBundle\\Tests\\Helper\\Cipher\\UrlSafeCipherTest::testHex2bin",
"message": "The \"Kunstmaan\\UtilitiesBundle\\Helper\\Cipher\\UrlSafeCipher::hex2bin\" method is deprecated since KunstmaanUtilitiesBundle 5.5 and will be removed in KunstmaanUtilitiesBundle 6.0.",
"count": 1
},
{
"location": "Kunstmaan\\AdminBundle\\Tests\\Entity\\GroupTest::setUp",
"message": "The \"Kunstmaan\\AdminBundle\\Entity\\Group\" class implements \"Symfony\\Component\\Security\\Core\\Role\\RoleInterface\" that is deprecated The RoleInterface is deprecated since version 3.3 and will be removed in 4.0. Extend the Symfony\\Component\\Security\\Core\\Role\\Role class instead.",
"location": "Kunstmaan\\TranslatorBundle\\Toolbar\\DataCollectorTranslator",
"message": "The \"Symfony\\Component\\Translation\\DataCollectorTranslator\" class is considered final since Symfony 7.1. It may change without further notice as of its next major version. You should not extend it from \"Kunstmaan\\TranslatorBundle\\Toolbar\\DataCollectorTranslator\".",
"count": 1
}
]
74 changes: 37 additions & 37 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,37 @@
],
"require": {
"php": "^8.1",
"symfony/acl-bundle": "^2.0",
"symfony/cache": "^6.4",
"symfony/config": "^6.4",
"symfony/console": "^6.4",
"symfony/dependency-injection": "^6.4",
"symfony/dom-crawler": "^6.4",
"symfony/event-dispatcher": "^6.4",
"symfony/expression-language": "^6.4",
"symfony/filesystem": "^6.4",
"symfony/finder": "^6.4",
"symfony/framework-bundle": "^6.4",
"symfony/form": "^6.4",
"symfony/http-foundation": "^6.4",
"symfony/http-kernel": "^6.4",
"symfony/mailer": "^6.4",
"symfony/acl-bundle": "^2.4",
"symfony/cache": "^6.4|^7.2",
"symfony/config": "^6.4|^7.2",
"symfony/console": "^6.4|^7.2",
"symfony/dependency-injection": "^6.4|^7.2",
"symfony/dom-crawler": "^6.4|^7.2",
"symfony/event-dispatcher": "^6.4|^7.2",
"symfony/expression-language": "^6.4|^7.2",
"symfony/filesystem": "^6.4|^7.2",
"symfony/finder": "^6.4|^7.2",
"symfony/framework-bundle": "^6.4|^7.2",
"symfony/form": "^6.4|^7.2",
"symfony/http-foundation": "^6.4|^7.2",
"symfony/http-kernel": "^6.4|^7.2",
"symfony/mailer": "^6.4|^7.2",
"symfony/monolog-bundle": "^3.10",
"symfony/options-resolver": "^6.4",
"symfony/property-access": "^6.4",
"symfony/routing": "^6.4",
"symfony/options-resolver": "^6.4|^7.2",
"symfony/property-access": "^6.4|^7.2",
"symfony/routing": "^6.4|^7.2",
"symfony/security-acl": "^3.1",
"symfony/security-core" : "^6.4",
"symfony/security-http" : "^6.4",
"symfony/security-bundle": "^6.4",
"symfony/serializer": "^6.4",
"symfony/string": "^6.4",
"symfony/translation": "^6.4",
"symfony/twig-bundle": "^6.4",
"symfony/validator": "^6.4",
"symfony/yaml": "^6.4",
"symfony/css-selector": "^6.4",
"symfony/mime": "^6.4",
"symfony/security-core" : "^6.4|^7.2",
"symfony/security-http" : "^6.4|^7.2",
"symfony/security-bundle": "^6.4|^7.2",
"symfony/serializer": "^6.4|^7.2",
"symfony/string": "^6.4|^7.2",
"symfony/translation": "^6.4|^7.2",
"symfony/twig-bundle": "^6.4|^7.2",
"symfony/validator": "^6.4|^7.2",
"symfony/yaml": "^6.4|^7.2",
"symfony/css-selector": "^6.4|^7.2",
"symfony/mime": "^6.4|^7.2",
"doctrine/inflector": "^1.4|^2.0",
"doctrine/orm": "^2.13",
"doctrine/dbal": "^3.8",
Expand All @@ -57,13 +57,13 @@

"knplabs/knp-menu-bundle": "^3.0",
"guzzlehttp/guzzle": "^7.0",
"babdev/pagerfanta-bundle": "^3.7",
"babdev/pagerfanta-bundle": "^4.0",
"kunstmaan/google-api-custom": "~1.0",
"gedmo/doctrine-extensions": "^2.4.34|^3.1.0",
"doctrine/doctrine-fixtures-bundle": "^3.3",
"stof/doctrine-extensions-bundle": "^1.7",
"liip/imagine-bundle": "^2.7.3",
"knplabs/knp-gaufrette-bundle": "^0.7.2",
"knplabs/knp-gaufrette-bundle": "^0.9.0",
"symfony-cmf/routing-bundle": "^2.1|^3.0",
"fpn/doctrine-extensions-taggable": "~0.9",
"twig/twig": "^3.6",
Expand All @@ -75,17 +75,17 @@
"defuse/php-encryption": "^2.2",
"doctrine/collections": "^1.6",
"symfony/deprecation-contracts": "^2.5|^3.0",
"pagerfanta/doctrine-dbal-adapter": "^3.8",
"pagerfanta/doctrine-orm-adapter": "^3.8",
"pagerfanta/doctrine-dbal-adapter": "^4.0",
"pagerfanta/doctrine-orm-adapter": "^4.0",
"symfony/maker-bundle": "^1.39"
},
"require-dev": {
"doctrine/data-fixtures": "^1.5.1",
"symfony/error-handler": "^6.4",
"symfony/error-handler": "^6.4|^7.2",
"fakerphp/faker": "^1.15",
"matthiasnoback/symfony-config-test": "^4.2.1",
"matthiasnoback/symfony-dependency-injection-test": "^4.2.1",
"symfony/phpunit-bridge": "^7.0",
"matthiasnoback/symfony-config-test": "^5.1",
"matthiasnoback/symfony-dependency-injection-test": "^5.1",
"symfony/phpunit-bridge": "^7.2",
"phpunit/phpunit": "^9.5.5",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-doctrine": "^2.0",
Expand Down
Loading

0 comments on commit 1b4119d

Please sign in to comment.